laravel之队列使用

    xiaoxiao2021-03-25  84

    使用版本 : laravel5.4

    遇到的错误1:

    [ErrorException] include(app/database/migrations/2014_08_06_120900_alter_xxx_table.php): failed to open stream: No such file or directory 解决方式: composer dump-autoload

    参考文章:

    http://stackoverflow.com/questions/25237415/php-artisan-migratereset-failed-to-open-stream-no-such-file-or-directory

    遇到的错误2:

    [Illuminate\Database\QueryException] SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes (SQL: alter tabl e users add unique users_email_unique(email))

    解决方式:

    The issue solved by the following way. Add the following code in AppServiceProvider.php L5_root/app/Providers/AppServiceProvider.php The code block

    use Illuminate\Support\Facades\Schema; //Import Schema function boot() { Schema::defaultStringLength(191); //Solved by increasing StringLength }

    参考文章:

    http://stackoverflow.com/questions/42244541/laravel-migration-error-syntax-error-or-access-violation-1071-specified-key-w

    https://github.com/laravel/framework/issues/17508

    转载请注明原文地址: https://ju.6miu.com/read-40830.html

    最新回复(0)