I have laravel package in its routes. I want to add two guards if any user related to these guard is authenticated it should go on that route but it is not working. if i remove customer route the default guard work if I remove default guard then customer route work don't know what is the problem when i dd($guard) in redirectIfAuthenticated
file it gives null
routes
Route::group(['namespace' => 'Coldxpress\Ticket\Http\Controllers'], function () {
Route::group(['middleware' => ['web','auth:customer']], function () {
Route::group(['prefix' => 'tickets'], function () {
Route::get('/{filter}', 'TicketController@index')->name('tickets.index');
Route::post('/store_replies_image', 'TicketController@uploadReplyImage');
});
});
});
I have two middlewares
'guards' => [
'web' => [
'driver' => 'session',
'provider' => 'users',
],
'customer' => [
'driver' => 'session',
'provider' => 'customers',
]
],
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire