Laravel-4-Generators
Laravel-4-Generators copied to clipboard
Class '<class>' not found in <path>/app/database/migrations/<timestamp>_create_user_groups_table.php
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?
show me your