我正在学习 laravel 5。有一天,当我运行 php artisan
命令时,我得到了这个错误
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
功能。如何检测导致此问题的文件。
谢谢!
最佳答案
我想你在你的配置文件中使用了 url()
助手,找到你在配置文件中放置 url()
助手的位置并将其删除。您的问题将得到解决。我有同样的问题并通过删除 url()
表单配置文件解决了..
url('bassets/plugins/highcharts/highcharts.css'),
关于php - Level 5 如何检测哪个文件错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35106055/