$ php artisan migrate --seed
?[32mMigration table created successfully.?[39m
?[33mMigrating:?[39m 2014_10_12_100000_create_password_resets_table
?[32mMigrated:?[39m 2014_10_12_100000_create_password_resets_table (0.01 seconds)
?[33mMigrating:?[39m 2016_06_01_000001_create_oauth_auth_codes_table
?[32mMigrated:?[39m 2016_06_01_000001_create_oauth_auth_codes_table (0.01 seconds)
?[33mMigrating:?[39m 2016_06_01_000002_create_oauth_access_tokens_table
?[32mMigrated:?[39m 2016_06_01_000002_create_oauth_access_tokens_table (0.02 seconds)
?[33mMigrating:?[39m 2016_06_01_000003_create_oauth_refresh_tokens_table
?[32mMigrated:?[39m 2016_06_01_000003_create_oauth_refresh_tokens_table (0.02 seconds)
?[33mMigrating:?[39m 2016_06_01_000004_create_oauth_clients_table
?[32mMigrated:?[39m 2016_06_01_000004_create_oauth_clients_table (0.01 seconds)
?[33mMigrating:?[39m 2016_06_01_000005_create_oauth_personal_access_clients_table
?[32mMigrated:?[39m 2016_06_01_000005_create_oauth_personal_access_clients_table (0.01 seconds)
?[33mMigrating:?[39m 2019_10_30_000001_create_media_table
?[41;1m Illuminate\Database\QueryException ?[49;22m : ?[33mSQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 1000
bytes (SQL: alter table `media` add index `media_model_type_model_id_index`(`model_type`, `model_id`))?[39m
at ?[32mC:\wamp64_320\www\laravel_student\Laravel-Demo-Courses-Enrollment\vendor\laravel\framework\src\Illuminate\Database\Connection.php?[39m:?[32m665?[39m
661| // If an exception occurs when attempting to run a query, we'll format the error
662| // message to include the bindings with SQL, which will make this exception a
663| // lot more helpful to the developer instead of just the database's errors.
664| catch (Exception $e) {
> 665| throw new QueryException(
666| $query, $this->prepareBindings($bindings), $e
667| );
668| }
669|
?[33mException trace:?[39m
?[36m1 ?[39m?[33mDoctrine\DBAL\Driver\PDOException::("SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 1000 by
tes")?[39m
?[32mC:\wamp64_320\www\laravel_student\Laravel-Demo-Courses-Enrollment\vendor\doctrine\dbal\lib\Doctrine\DBAL\Driver\PDOStatement.php?[39m:?[32m119?[39m
?[36m2 ?[39m?[33mPDOException::("SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 1000 bytes")?[39m
?[32mC:\wamp64_320\www\laravel_student\Laravel-Demo-Courses-Enrollment\vendor\doctrine\dbal\lib\Doctrine\DBAL\Driver\PDOStatement.php?[39m:?[32m117?[39m
?[32mPlease use the argument ?[39m?[31m-v?[39m?[32m to see more details.?[39m
{
View::composer('partials.header', 'App\Http\View\Composers\MenuComposer');
Schema::defaultStringLength(191);
}
$ php artisan migrate --seed
Symfony\Component\Debug\Exception\FatalThrowableError : Class 'App\Providers\Schema' not found
at C:\wamp64_320\www\laravel_student\Laravel-Demo-Courses-Enrollment\app\Providers\AppServiceProvider.php:29
25| public function boot()
26| {
27| View::composer('partials.header', 'App\Http\View\Composers\MenuComposer');
28|
> 29| Schema::defaultStringLength(191);
30| }
31| }
32|
Exception trace:
1 App\Providers\AppServiceProvider::boot()
C:\wamp64_320\www\laravel_student\Laravel-Demo-Courses-Enrollment\vendor\laravel\framework\src\Illuminate\Container\BoundMethod.php:32
2 call_user_func_array([])
C:\wamp64_320\www\laravel_student\Laravel-Demo-Courses-Enrollment\vendor\laravel\framework\src\Illuminate\Container\BoundMethod.php:32
Please use the argument -v to see more details.