I have to tables which i am authenticating with users, admins. I have changed the config/auth.php accordingly for guards and providers.
Now i have some guarded routes for admins like :
Route::group(['middleware' => ['auth']], function () {
Route::get('/admin', 'AdminController@index')->name('adminIndex');
});
I am applying middleware auth on the above route, It kicks me back to the user login page(/login), Not to the admin dashboard page.
Why is that, What am i missing ?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire