gpt4 book ai didi

php - 使用 Laravel 5.1 获取 PHP 可捕获的 fatal error

转载 作者:搜寻专家 更新时间:2023-10-31 21:04:57 37 4
gpt4 key购买 nike

当我尝试运行 php artisan 时,为什么会出现 PHP Catchable Fatal Error with Laravel 5.1?

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

我不知道为什么会出现此错误。

最佳答案

<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>

关于php - 使用 Laravel 5.1 获取 PHP 可捕获的 fatal error ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34154306/

37 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com