Created
August 25, 2019 23:35
-
-
Save MrJmpl3/a407f8b2b017b6fff65652dec8a74270 to your computer and use it in GitHub Desktop.
Testing Login of Laravel Passport without lose env
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
request()->request->add([ | |
'grant_type' => 'password', | |
'client_id' => env('PASSPORT_CLIENT_ID'), | |
'client_secret' => env('PASSPORT_CLIENT_SECRET'), | |
'username' => $this->username, | |
'password' => $this->password, | |
'scope' => '*', | |
]); | |
$request = Request::create(env('APP_URL') . '/oauth/token', 'POST'); | |
return Route::dispatch($request); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment