Am trying to use @auth @guest but am unable to get @auth working when i'm using this middleware, will keep getting @guest instead of @auth even though already logged in. The page needs to be accessible even if the user is not logged in.
Route file:
Route::middleware(['guest:member'])->group(function () {
Route::get('/', 'HomeController@index')->name('official.home');
});
auth.php
'guards' => [
'admin' => [
'driver' => 'session',
'provider' => 'users',
],
'member' => [
'driver' => 'session',
'provider' => 'users',
],
'api' => [
'driver' => 'passport',
'provider' => 'users',
],
]
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire