ralevel 5.2 'middleware' => ['admin.login','web'] Parallel middleware will cause an error
黑子
黑子 2018-03-17 04:21:26
0
1
1309

Visithttp://myblog.hz/admin/index Can display 123, but cannot call the welcome page

Error code: FatalErrorExceptionin View.php line 3: Maximum function nesting level of '100' reached, aborting!

Source code:Route::group(['prefix' => 'admin','namespace'=>'Admin', 'middleware' => ['web','admin.login']],
function () {

Route::get('login','IndexController@login');
Route: :get('index','IndexController@index');
Route::resource('article','ArticleController');
});

Middleware code: public function handle ($ Request, CLOSURE $ Next)
{
Echo 123;
Return $ NEXT ($ Request);
}

## If there is only one web, or admin.login, it is normal. run

黑子
黑子

reply all(1)
黑子

Just regenerate a laravel

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template