mercredi 28 novembre 2018

how to use muiti middleware for routes in laravel 5.7

i have middleware groups:

Route::group(['middleware' => ['auth:admins','web']], function () {
    Route::get('/change_mail/{num?}','LoginController@change_mail')->name('change_mail');
    Route::post('/change_mail', 'LoginController@post_change_mail');        
});

but when i login with user account and use route 'change_mail', it still redirect to login page although successful logged in.

What is wrong in my route?!

Please help!



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

Aucun commentaire:

Enregistrer un commentaire