Laravel database migration error

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

I pulled the latest commit by my friend and tried to start 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 localhost doesn't show anything.

And I have already edited .env

as required.

+3


source to share


1 answer


When you create a port database

, not only the script is generated in the folder , but the script also appears in startup files, which are ignored by default in git repositories.

Now that you've downloaded your colleagues' changes, your startup files are out of date. update them using:



composer dump-autoload

      

+2


source







All Articles