2015-12-08 41 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>

相關問題