Sunday, January 30, 2022

[FIXED] How to fix autoload warning after update Laravel

Issue

C:\Users\User-PC>composer dump-autoload

How fix problem after update Laravel with command composer self-update?

Composer could not find a composer.json file in C:\Users\User-PC To initialize a project, please create a composer.json file as described in the http://getcomposer.org/ "Getting Started" section


Solution

composer self-update is for updating composer not for updating laravel. So if you want to update laravel you need to run composer update (inside the laravel dir)



Answered By - Martijn Thomas

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.