Maximum nesting level of the Use laravel feature


so I started to use Laravel auth and in my Route in web middleware I wrote :

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

and I got this error :

Maximum function nesting level of '100' reached, aborting!

and I tried to use this instead :

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

and then when I wanted to use old function in my form I got this error

Session store not set on request.

can you help me , a tutorial link is also a good idea :)

This is the problem of recursion. So,go into your php.ini configuration file and change the following line:


to something like:



If you are using wamp then please comment

 zend_extension = "d:/wamp/bin/php/php5.3.8/zend_ext/php_xdebug-2.1.2-5.3-vc9.dll //here wamp is installed in d drive.

in my php.ini file. This extension should be limiting the stack to 100 .