簡體   English   中英

Laravel 5.1 Php工匠命令在作曲家更新后無效

[英]Laravel 5.1 Php artisan commands not working after composer update

這是我的composer.json需要片段。

"require": {
    "php": ">=5.5.9",
    "laravel/framework": "5.1.35",
    "aws/aws-sdk-php-laravel": "~3.0",
    "lucadegasperi/oauth2-server-laravel": "5.1.*",
    "bosnadev/repositories": " 0.*",
    "laravelcollective/html": "5.1.*",
    "cartalyst/stripe-laravel": "3.0.*"
},

我運行了composer update以添加新的AWS服務。 但后來我注意到所有供應商文件都因為composer update命令而更新。 現在,當我運行php artisan命令時,我收到錯誤。

這是錯誤信息: -

PHP Catchable fatal error:  Argument 2 passed to Illuminate\Routing\UrlGenerator
::__construct() must be an instance of Illuminate\Http\Request, null given, call
ed in C:\Users\User\projects\projectxyz\projectxyzweb\vendor\laravel\framework\
src\Illuminate\Routing\RoutingServiceProvider.php on line 62 and defined in C:\U
sers\User\projects\projectxyz\projectxyzweb\vendor\laravel\framework\src\Illumi
nate\Routing\UrlGenerator.php on line 102

我該如何解決這個問題? 有沒有辦法在不丟失代碼的情況下還原作曲家更新?

我終於設法擺脫這個錯誤。 我不是我的作曲家更新。 我添加了url()來在我的配置文件中設置基本URL。 刪除后,php artisan工作。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM