search

Home  >  Q&A  >  body text

ralevel 5.2 'middleware' => ['admin.login','web'] Parallel middleware will cause an error

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

黑子黑子2449 days ago1315

reply all(1)I'll reply

  • 黑子

    黑子2018-03-21 21:12:40

    Just regenerate a laravel

    reply
    0
  • Cancelreply