简体   繁体   English

使用Laravel 5.1获取PHP Catchable致命错误

[英]Getting PHP Catchable Fatal Error with Laravel 5.1

Why am I getting PHP Catchable Fatal Error with Laravel 5.1 when I try to run php artisan ? 当我尝试运行php artisan时,为什么我会使用Laravel 5.1获得PHP Catchable Fatal Error?

Catchable fatal error: Argument 2 passed to Illuminate\\Routing\\UrlGenerator::__construct() must be an instance of Illuminate\\Http\\Request, null given, called in C:\\xampp\\htdocs\\kinnect2\\local\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\RoutingServiceProvider.php on line 62 and defined in C:\\xampp\\htdocs\\kinnect2\\local\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\UrlGenerator.php on line 99 可捕获致命错误:传递给Illuminate \\ Routing \\ UrlGenerator :: __ construct()的参数2必须是Illuminate \\ Http \\ Request的实例,null给定,在C:\\ xampp \\ htdocs \\ kinnect2 \\ local \\ vendor \\ laravel \\ framework中调用第62行上的\\ src \\ Illuminate \\ Routing \\ RoutingServiceProvider.php并在第99行的C:\\ xampp \\ htdocs \\ kinnect2 \\ local \\ vendor \\ laravel \\ framework \\ src \\ Illuminate \\ Routing \\ UrlGenerator.php中定义

I don't know why I am getting this error. 我不知道为什么我会收到这个错误。

 <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> 

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM