Laravel数据库迁移错误

时间:2017-05-28 16:13:31

标签: php laravel migrate

我正在尝试与其他开发人员就我正在开展的项目进行合作。

我的朋友拉了最新的提交并尝试运行该应用程序。 我尝试了以下命令:

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是我项目的名称。 并且localhost什么也没显示。

我已经根据需要编辑了.env

1 个答案:

答案 0 :(得分:2)

创建迁移时,不仅会在composer dump-autoload 文件夹中创建脚本,而且脚本也会列在自动加载文件中,默认情况下会从git存储库中忽略这些脚本。

现在您已下载了同事的修改,您的自动加载文件已过期。使用以下命令更新它们:

%time df.groupby(['INDEX', 'COLUMN']).agg({'VALUE':['sum','size']}).unstack(level='COLUMN')
CPU times: user 2.28 s, sys: 29.8 ms, total: 2.31 s
Wall time: 2.36 s