2015-12-08 42 views
2

为什么当我尝试运行php artisan时,Laravel 5.1会出现PHP可捕获的致命错误?使用Laravel 5.1获取PHP可捕获的致命错误

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

我不知道为什么我得到这个错误。

回答

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>

相关问题