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