php artisan passport:keys php artisan passport:client --personal $ php artisan passport:keys Encryption keys generated successfully. Marco@DESKTOP-PM0PM94 MINGW64 /d/var/www/multi/laravel (master) $ php artisan passport:client --personal What should we name the personal access client? [Laravel Personal Access Client]: > Personal access client created successfully. Client ID: 2 Client secret: T3xV9nzvpZkQbGl0VQrjVm8Lx3K5xne9Z4QQ4z8Y Personal access client created successfully. Client ID: 3 Client secret: dQVKt04B7gmRBhC5q1vWvV5sc3avEAMUoiBZKZt9 Password grant client created successfully. Client ID: 4 Client secret: M6Tctk5jGaz8fCcEWvpeqtLnvuJsuXbDPSGLCOay $response = $http->post(url('/oauth/token'), [ 'form_params' => [ 'grant_type' => 'password', 'client_id' => config('services.passport.client_id'), 'client_secret' => config('services.passport.client_secret'), 'username' => $userData->username, 'password' => $userData->password, ], ]);