diff --git a/app/Console/Commands/Grapper/Logifuture/Auth.php b/app/Console/Commands/Grapper/Logifuture/Auth.php index 66f85002..01073fe1 100644 --- a/app/Console/Commands/Grapper/Logifuture/Auth.php +++ b/app/Console/Commands/Grapper/Logifuture/Auth.php @@ -35,10 +35,10 @@ class Auth curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_POST, true); - curl_setopt($ch, CURLOPT_POSTFIELDS, [ + curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode([ 'username' => 'nuhodds', 'password' => self::$password, - ]); + ])); curl_setopt($ch, CURLOPT_HTTPHEADER, [ 'accept: application/json', 'content-type: application/json',