当我尝试运行php artisan
时,为什么我在Laravel 5.1中遇到PHP Catchable Fatal Error?
可捕获的致命错误:传递给Illuminate的路径2 \ Routing \ UrlGenerator :: __ construct()必须是Illuminate \ Http \ Request的实例,null给定,在C:\ xampp \ htdocs \ kinnect2 \ local \ vendor \中调用第62行的laravel \ framework \ src \ Illuminate \ Routing \ RoutingServiceProvider.php,第99行的C:\ xampp \ htdocs \ kinnect2 \ local \ vendor \ laravel \ framework \ src \ Illuminate \ Routing \ UrlGenerator.php中定义
我不知道为什么会收到此错误。
答案 0 :(得分:0)
<p>i think you used url() helper in your any config file in config folder, i had this same problem.</p>
<code>
'highcharts' => [
'styles' => [
url('bassets/plugins/highcharts/highcharts.css'),
],
'scripts' => [
url('bassets/plugins/highcharts/highcharts.js'),
url('bassets/plugins/highcharts/exporting.js'),
url('bassets/plugins/highcharts/map.js'),
url('bassets/plugins/highcharts/data.js'),
url('bassets/plugins/highcharts/world.js'),
],
],
</code>
&#13;