I have some routes use with middleware
here is one example
Route::get('/TobeSubmit', 'AddsController@tobeSubmit')->name('TobeSubmit');
when I use this route outside of middleware its working. here is that middleware
Route::group(['middleware' => ['auth','Admin']],function (){ });
when I use that route inside middleware
Route::group(['middleware' => ['auth','superuser']],function (){
Route::get('/TobeSubmit', 'AddsController@tobeSubmit')->name('TobeSubmit');});
like this, its not working, that route use for data retrieving via AJAX.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…