laravel php artisan 错误
当运行 php artisan 的任意命令时出现如下错误时:
<code><span>[</span>RuntimeException<span>]</span> Error Output: PHP Catchable fatal error: Argument 2 passed to Illuminate<span>\R</span> outing<span>\UrlGenerator</span>::__construct() must be an instance of Illuminate<span>\Http</span><span>\R</span> equest, null given, called in <span>\laravel</span>5<span>\vendor</span><span>\laravel</span><span>\fram</span> ework<span>\src</span><span>\Illuminate</span><span>\Routing</span><span>\RoutingServiceProvider</span>.php on line 62 and defi ned in laravel5<span>\vendor</span><span>\laravel</span><span>\framework</span><span>\src</span><span>\Illuminate</span><span>\Ro</span> uting<span>\UrlGenerator</span>.php on line 102 </code>
可能是因为你在config目录下的配置文件中调用了 url(”) 方法,只要去掉url(”) 方法即可。
').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i ').text(i)); }; $numbering.fadeIn(1700); }); });以上就介绍了laravel php artisan 错误,包括了laravel方面的内容,希望对PHP教程有兴趣的朋友有所帮助。