【问题标题】:Laravel bootstrap - Migration ErrorLaravel bootstrap - 迁移错误
【发布时间】:2015-12-19 01:15:13
【问题描述】:

我遇到了这个错误-

    C:\WAMP\www\gtwhero [master]> php artisan migrate:make create_users_table

    Warning: require(C:\WAMP\www\gtwhero\bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in C:\WAMP\www\gtwhero\bootstrap\autoload.php on line 17

    Call Stack:
        0.0002     233352   1. {main}() C:\WAMP\www\gtwhero\artisan:0
        0.0006     236256   2. require('C:\WAMP\www\gtwhero\bootstrap\autoload.php') C:\WAMP\www\gtwhero\artisan:16


    Fatal error: require(): Failed opening required 'C:\WAMP\www\gtwhero\bootstrap/../vendor/autoload.php' (include_path='.;C:\php\pear') in C:\WAMP\www\gtwhero\bootstrap\autoload.php on line 17

    Call Stack:
        0.0002     233352   1. {main}() C:\WAMP\www\gtwhero\artisan:0
        0.0006     236256   2. require('C:\WAMP\www\gtwhero\bootstrap\autoload.php') C:\WAMP\www\gtwhero\artisan:16

翻完之后 php artisan migrate:make create_users_table

有人可以帮忙吗?

【问题讨论】:

  • 您是否尝试过运行 composer install 看起来您缺少一些依赖项?

标签: twitter-bootstrap laravel migrate seed


【解决方案1】:

当我从 git repo 部署一些文件时,我遇到了类似的问题,因为我的.gitignore 中列出了一些基本的 Laravel 文件并没有带来。

无论如何,运行composer install 将确保所需的一切都在那里。

之后你应该可以毫无问题地运行php artisan migrate:make create_users_table

【讨论】:

    猜你喜欢
    • 2018-06-05
    • 2014-06-10
    • 2017-06-18
    • 2018-10-01
    • 2014-10-05
    • 2015-10-18
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多