Need some help, please.
I followed the tutorial What's New in Laravel 5.3: Laravel Passport (http://ift.tt/2b2hMzA) step by step and i have this error:
ServerException in RequestException.php line 107: Server error: POST http://ift.tt/2dk4uxp
resulted in a 500 Internal Server Error
response: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'consumer.oauth_clients' doesn't exist (SQL: select * from `oa (truncated...)
consumer.dev
use Illuminate\Http\Request; Route::get('/', function () { $query = http_build_query([ 'client_id' => 4, 'redirect_uri' => 'http://ift.tt/2ayVYuu', 'response_type' => 'code', 'scope' => '', ]); return redirect('http://ift.tt/2dk3yZU?'.$query); }); Route::get('/callback', function(Request $request) { $http = new GuzzleHttp\Client; $response = $http->post('http://ift.tt/2dk4uxp', [ 'form_params' => [ 'grant_type' => 'authorization_code', 'client_id' => 4, 'client_secret' => 'a8OifFPH38rMi1I6vjmV3O8XD55hAk2FG4f95j9W', 'redirect_uri' => 'http://ift.tt/2ayVYuu', 'code' => $request->code, ], ]); return json_decode((string) $response->getBody(), true); });
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire