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
函數。如何檢測哪個文件導致此問題。
謝謝!
我使用phpunit和問題解決 –