I want to immerge two laravel projects so they can have the same authentication,once i login in the first, the second will also login. The first laravel project works with API_Token, so i'm trying to add it in the second project. Since i have the two projects working with laravel 5.2 i followed the next steps: I added a column called api_token to users table - I added a route group where i placed only the dashboard just for test
Route::group(['prefix' => 'api/v1', 'middleware' => 'auth:api'], function () {
Route::post('/dashboard', 'SiteController@getDashboard');
});
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire