未经过身份验证时的最大函数嵌套级别

时间:2016-07-23 08:42:25

标签: laravel laravel-5.2 laravel-routing

从L2上的全新安装,基本身份验证,没有变化。 我试图添加一些简单的路线,不需要auth。

路线" / no-auth"适用于登录和退出。

但使用控制器的路由" / starter / my-needs"仅在登录时才有效。

我的问题是:为什么我得到"未经过身份验证的最大功能嵌套级别"。 这似乎是Guest()方法的转变......

这是控制器:

Route::get('/', function () {
    return view('front/welcome/welcome');
});
Route::get('/no-auth', function () {
    return view('front/findMyBank/FR/myNeeds', array(
    ));
});

Route::group(['prefix' => '/starter'], function () {
    Route::get('/my-needs', 'FindMyBank\FindMyBankController@showMyNeeds');
});

Route::auth();

这条路线:

FatalErrorException in ClassLoader.php line 314:
Maximum function nesting level of '100' reached, aborting!

in ClassLoader.php line 314
at FatalErrorException->__construct() in HandleExceptions.php line 133
at HandleExceptions->fatalExceptionFromError() in HandleExceptions.php line 118
at HandleExceptions->handleShutdown() in HandleExceptions.php line 0
at ClassLoader->loadClass() in ClassLoader.php line 0
at spl_autoload_call() in ClassLoader.php line 22
in ClassLoader.php line 412
at Composer\Autoload\includeFile() in ClassLoader.php line 301
at ClassLoader->loadClass() in ClassLoader.php line 0
at spl_autoload_call() in ClassLoader.php line 12
in ClassLoader.php line 412
at Composer\Autoload\includeFile() in ClassLoader.php line 301
at ClassLoader->loadClass() in ConnectionFactory.php line 0
at spl_autoload_call() in ConnectionFactory.php line 217
at ConnectionFactory->createConnection() in ConnectionFactory.php line 64
at ConnectionFactory->createSingleConnection() in ConnectionFactory.php line 49
at ConnectionFactory->make() in DatabaseManager.php line 176
at DatabaseManager->makeConnection() in DatabaseManager.php line 68
at DatabaseManager->connection() in Model.php line 3293
at Model::resolveConnection() in Model.php line 3259
at Model->getConnection() in Model.php line 1880
at Model->newBaseQueryBuilder() in Model.php line 1853
at Model->newQueryWithoutScopes() in Model.php line 1823
at Model->newQuery() in EloquentUserProvider.php line 47
at EloquentUserProvider->retrieveById() in SessionGuard.php line 132
at SessionGuard->user() in GuardHelpers.php line 49
at SessionGuard->check() in GuardHelpers.php line 59
at SessionGuard->guest() in AuthManager.php line 292
at call_user_func_array:{C:\wamp\www\bebankable\vendor\laravel\framework\src\Illuminate\Auth\AuthManager.php:292}() in AuthManager.php line 292
at AuthManager->__call() in Facade.php line 215
at AuthManager->guest() in Facade.php line 215
at Facade::__callStatic() in 48fdfc9cae67647c36e6877d2cf03c700242912f.php line 56
at Auth::guest() in 48fdfc9cae67647c36e6877d2cf03c700242912f.php line 56
in PhpEngine.php line 42
at PhpEngine->evaluatePath() in CompilerEngine.php line 59
at CompilerEngine->get() in View.php line 149
at View->getContents() in View.php line 120
at View->renderContents() in View.php line 85
at View->render() in a391999563a1000056f17c1ece3bb49d99d7278c.php line 74
in PhpEngine.php line 42
at PhpEngine->evaluatePath() in CompilerEngine.php line 59
at CompilerEngine->get() in View.php line 149
at View->getContents() in View.php line 120
at View->renderContents() in View.php line 85
at View->render() in Response.php line 53
at Response->setContent() in Response.php line 201
at Response->__construct() in Router.php line 1085
at Router->prepareResponse() in ControllerDispatcher.php line 95
at ControllerDispatcher->Illuminate\Routing\{closure}() in Pipeline.php line 52
at call_user_func:{C:\wamp\www\bebankable\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:52}() in Pipeline.php line 52
at Pipeline->Illuminate\Routing\{closure}() in Pipeline.php line 103
at call_user_func:{C:\wamp\www\bebankable\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:103}() in Pipeline.php line 103
at Pipeline->then() in ControllerDispatcher.php line 96
at ControllerDispatcher->callWithinStack() in ControllerDispatcher.php line 54
at ControllerDispatcher->dispatch() in Route.php line 174
at Route->runController() in Route.php line 140
at Route->run() in Router.php line 724
at Router->Illuminate\Routing\{closure}() in Pipeline.php line 52
at call_user_func:{C:\wamp\www\bebankable\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:52}() in Pipeline.php line 52
at Pipeline->Illuminate\Routing\{closure}() in VerifyCsrfToken.php line 64
at VerifyCsrfToken->handle() in Pipeline.php line 136
at call_user_func_array:{C:\wamp\www\bebankable\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:136}() in Pipeline.php line 136
at Pipeline->Illuminate\Pipeline\{closure}() in Pipeline.php line 32
at call_user_func:{C:\wamp\www\bebankable\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:32}() in Pipeline.php line 32
at Pipeline->Illuminate\Routing\{closure}() in ShareErrorsFromSession.php line 49
at ShareErrorsFromSession->handle() in Pipeline.php line 136
at call_user_func_array:{C:\wamp\www\bebankable\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:136}() in Pipeline.php line 136
at Pipeline->Illuminate\Pipeline\{closure}() in Pipeline.php line 32
at call_user_func:{C:\wamp\www\bebankable\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:32}() in Pipeline.php line 32
at Pipeline->Illuminate\Routing\{closure}() in StartSession.php line 64
at StartSession->handle() in Pipeline.php line 136
at call_user_func_array:{C:\wamp\www\bebankable\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:136}() in Pipeline.php line 136
at Pipeline->Illuminate\Pipeline\{closure}() in Pipeline.php line 32
at call_user_func:{C:\wamp\www\bebankable\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:32}() in Pipeline.php line 32
at Pipeline->Illuminate\Routing\{closure}() in AddQueuedCookiesToResponse.php line 37
at AddQueuedCookiesToResponse->handle() in Pipeline.php line 136
at call_user_func_array:{C:\wamp\www\bebankable\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:136}() in Pipeline.php line 136
at Pipeline->Illuminate\Pipeline\{closure}() in Pipeline.php line 32
at call_user_func:{C:\wamp\www\bebankable\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:32}() in Pipeline.php line 32
at Pipeline->Illuminate\Routing\{closure}() in EncryptCookies.php line 59
at EncryptCookies->handle() in Pipeline.php line 136
at call_user_func_array:{C:\wamp\www\bebankable\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:136}() in Pipeline.php line 136
at Pipeline->Illuminate\Pipeline\{closure}() in Pipeline.php line 32
at call_user_func:{C:\wamp\www\bebankable\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:32}() in Pipeline.php line 32
at Pipeline->Illuminate\Routing\{closure}() in Pipeline.php line 103
at call_user_func:{C:\wamp\www\bebankable\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:103}() in Pipeline.php line 103
at Pipeline->then() in Router.php line 726
at Router->runRouteWithinStack() in Router.php line 699
at Router->dispatchToRoute() in Router.php line 675
at Router->dispatch() in Kernel.php line 246
at Kernel->Illuminate\Foundation\Http\{closure}() in Pipeline.php line 52
at call_user_func:{C:\wamp\www\bebankable\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:52}() in Pipeline.php line 52
at Pipeline->Illuminate\Routing\{closure}() in CheckForMaintenanceMode.php line 44
at CheckForMaintenanceMode->handle() in Pipeline.php line 136
at call_user_func_array:{C:\wamp\www\bebankable\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:136}() in Pipeline.php line 136
at Pipeline->Illuminate\Pipeline\{closure}() in Pipeline.php line 32
at call_user_func:{C:\wamp\www\bebankable\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:32}() in Pipeline.php line 32
at Pipeline->Illuminate\Routing\{closure}() in Pipeline.php line 103
at call_user_func:{C:\wamp\www\bebankable\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:103}() in Pipeline.php line 103
at Pipeline->then() in Kernel.php line 132
at Kernel->sendRequestThroughRouter() in Kernel.php line 99
at Kernel->handle() in index.php line 54
at {main}() in index.php line 0

痕迹:

{{1}}

1 个答案:

答案 0 :(得分:0)

它似乎是xdebug的基本默认限制, [PHP.ini中] xdebug.max_nesting_level = 250

这是有效的。