Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Class '<class>' not found in <path>/app/database/migrations/<timestamp>_create_user_groups_table.php #355

Open
ayyobro opened this issue Jul 30, 2014 · 1 comment

Comments

@ayyobro
Copy link

ayyobro commented Jul 30, 2014

I created a custom BaseMigration class by hand in the migrations directory, but whenever I try to extend my other migration files I get:

Fatal Error: Class 'BaseMigration' not found in app/database/migrations/_create_user_table.php on line 6.

Stack trace:

PHP   1. {main}() /<path>/pds/artisan:0
PHP   2. Symfony\Component\Console\Application->run() /<path>/pds/artisan:59
PHP   3. Symfony\Component\Console\Application->doRun() /<path>/pds/vendor/symfony/console/Symfony/Component/Console/Application.php:124
PHP   4. Symfony\Component\Console\Application->doRunCommand() /<path>/pds/vendor/symfony/console/Symfony/Component/Console/Application.php:193
PHP   5. Illuminate\Console\Command->run() /<path>/pds/vendor/symfony/console/Symfony/Component/Console/Application.php:887
PHP   6. Symfony\Component\Console\Command\Command->run() /<path>/pds/vendor/laravel/framework/src/Illuminate/Console/Command.php:100
PHP   7. Illuminate\Console\Command->execute() /<path>/pds/vendor/symfony/console/Symfony/Component/Console/Command/Command.php:252
PHP   8. Illuminate\Database\Console\Migrations\MigrateCommand->fire() /<path>/pds/vendor/laravel/framework/src/Illuminate/Console/Command.php:112
PHP   9. Illuminate\Database\Migrations\Migrator->run() /<path>/pds/vendor/laravel/framework/src/Illuminate/Database/Console/Migrations/MigrateCommand.php:70
PHP  10. Illuminate\Database\Migrations\Migrator->requireFiles() /<path>/pds/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php:71
PHP  11. Illuminate\Filesystem\Filesystem->requireOnce() /<path>/pds/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php:245
PHP  12. require_once() /<path>/pds/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:59

in the create user groups file I start off the class with:

class CreateUserGroups extends BaseMigration { ...  }

Also, after creating the class, I followed the suggestions of doing a composer AND artisan autoload dump after updating both, but still getting the error :/

Thoughts?

@AndyLee1024
Copy link

show me your _create_user_groups_table.php 's code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants