简体   繁体   中英

Laravel database migration error

I am trying to collaborate with other developers on the project that I am working.

I pulled the latest commit by my friend and trying to run the application. I tried the following command :

php artisan migrate

but got the following error:

PHP Warning:  require(/var/www/html/assuresale/vendor/composer/../guzzlehttp/psr7/src/functions_include.php): failed to open stream: No such file or directory in /var/www/html/assuresale/vendor/composer/autoload_real.php on line 66
PHP Fatal error:  require(): Failed opening required '/var/www/html/assuresale/vendor/composer/../guzzlehttp/psr7/src/functions_include.php' (include_path='.:/usr/share/php') in /var/www/html/assuresale/vendor/composer/autoload_real.php on line 66

I am using Laravel and assuresale is the name of my project. And the localhost is showing nothing.

And I have already edited the .env according to the need.

When creating a migration, not only a script is created in the database folder, but the script is also listed in the autoload files, which are ignored by default from git repositories.

Now that you have downloaded the modifications of your coworkers, your autoload files are out of date. update them using:

composer dump-autoload

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM