0

在 Laravel 5 中,我安装了 AdminLTE 模板。这个模板提供了路由文档https://github.com/acacha/adminlte-laravel/blob/master/src/Http/routes.php。但是我对路由进行了一些更改,因为我想要默认登录路由

    Route::group(['middleware' => 'web'], function () {
    Route::auth();

    Route::get('/', 'Auth\AuthController@getLogin');
    Route::post('auth/login', 'Auth\AuthController@postLogin');
    Route::get('auth/logout', 'Auth\AuthController@getLogout'); 
});

如果我使用它,我将面临以下错误

Factory.php 第 5 行中的 FatalErrorException:达到“100”的最大函数嵌套级别,正在中止!

但是我删除了中间件,所以工作正常。那么我的问题是什么,或者我错过了什么。

4

1 回答 1

1

首先从这里打开你的 xdebug conf 文件/etc/php5/mods-available/xdebug.ini

然后根据需要将 xdebug 嵌套级别设置为 100 以上xdebug.max_nesting_level=500

于 2016-05-24T06:45:02.010 回答