2016-01-30 19 views
3

我性學習的laravel 5.一天,當我運行php artisan命令我得到這個錯誤如何檢測哪個文件錯誤Lavel 5

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\premiumlens\vendor\laravel\framework\src\Illuminate\Routing\RoutingServiceProvider.php on line 62 and defined in C:\xampp\htdocs\premiumlens\vendor\laravel\framework\src\Illuminate\Routing\UrlGenerator.php on line 102 

幾乎應用功能完美的工作。但可能並非全部。我敢肯定,錯誤不是由UrlGenerator.php

現在我不能使用任何artisan函數。如何檢測哪個文件導致此問題。

謝謝!

+0

我使用phpunit和問題解決 –

回答

0

我想你在你的配置文件中使用了url()助手,找到你的配置文件中的url()助手並將其刪除。你的問題將得到解決。我有這個相同的問題,並通過刪除url()窗體配置文件解決..

url('bassets/plugins/highcharts/highcharts.css'),