我想与正在开发的项目中的其他开发人员合作。
我拉取了我的朋友的最新提交并尝试运行应用程序。
我尝试了以下命令:
我正在使用Laravel,assuresale是我的项目名称。 但本地主机上没有显示任何内容。
我已经根据需要编辑了.env文件。
php artisan migrate
但是遇到了以下错误:
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
我正在使用Laravel,assuresale是我的项目名称。 但本地主机上没有显示任何内容。
我已经根据需要编辑了.env文件。
composer dump-autoload
并检查是否解决了问题。 - Sandeeshcomposer install
。此外,在协作开发中,将 composer.lock 提交也是一个好习惯,以保持包版本的同步。 - Sandeesh