You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following exception is thrown upon running php artisan migrate
Symfony\Component\Debug\Exception\FatalThrowableError : Class 'CreateInterestsTable' not found
at /Users/dustinleblanc/Sites/wonderlore/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php:419
415| public function resolve($file)
416| {
417| $class = Str::studly(implode('_', array_slice(explode('_', $file), 4)));
418|
> 419| return new $class;
420| }
421|
422| /**
423| * Get all of the migration files in a given path.
Exception trace:
1 Illuminate\Database\Migrations\Migrator::resolve("2019_04_23_112144_create_interests_table")
/Users/dustinleblanc/Sites/wonderlore/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php:169
2 Illuminate\Database\Migrations\Migrator::runUp("/Users/dustinleblanc/Sites/wonderlore/database/migrations/2019_04_23_112144_create_interests_table.php")
/Users/dustinleblanc/Sites/wonderlore/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php:147
Please use the argument -v to see more details.
Expected behavior
Running php artisan migrate after generation of a resource does not fail
Desktop (please complete the following information):
OS: OSX High Sierra, PHP 7.3 via brew
Was able to fix by renaming the generated class
The text was updated successfully, but these errors were encountered:
Describe the bug
Migration Class name doesn't respect the table name specified
To Reproduce
When generating a resource with:
The following exception is thrown upon running
php artisan migrate
Expected behavior
Running
php artisan migrate
after generation of a resource does not failDesktop (please complete the following information):
Was able to fix by renaming the generated class
The text was updated successfully, but these errors were encountered: