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教學有興趣的朋友有幫助。