mercredi 25 avril 2018

ReflectionException in Route.php line 280: Class App\Http\Controllers\api/v1\SiteController does not exist

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');
});



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2Ht5uOa
via IFTTT

Aucun commentaire:

Enregistrer un commentaire