8000 Class CreatePasswordRemindersTable not found on rollback and refresh · Issue #1395 · laravel/framework · GitHub
[go: up one dir, main page]

Skip to content

Class CreatePasswordRemindersTable not found on rollback and refresh #1395

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

Closed
8000
russback opened this issue May 24, 2013 · 13 comments
Closed

Class CreatePasswordRemindersTable not found on rollback and refresh #1395

russback opened this issue May 24, 2013 · 13 comments

Comments

@russback
Copy link

Running the below generates the migration for the password reminders table and runs it:

php artisan auth:reminders
php artisan migrate

However on migrate:refresh or migrate:rollback, an exception is thrown:

Class 'CreatePasswordRemindersTable' not found in /my/path/to/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php on line 301
@taylorotwell
Copy link
Member

OK. For now do composer dump-autoload before refreshing or resetting.

@taylorotwell
Copy link
Member

Closing as duplicate of #1391.

@russback
Copy link
Author

Great, thanks.

@ibrasho
Copy link
Contributor
ibrasho commented May 24, 2013

composer dump-autoload doesn't do it for me...
Any other ideas?

@robclancy
Copy link
Contributor

This has already been fixed, composer update.

@ibrasho
Copy link
Contributor
ibrasho commented May 25, 2013

Does not work.

@carcinocron
Copy link

I'm having this problem, too. composer dump-autoload Isn't fixing it.

@carcinocron
Copy link

I would like to follow up, my problem was fixed by altering (I actually just deleted) the migrations table in the DB.

@dedikisme
Copy link

cannot migrate:rollback
but after composer dump-autoload
solved 😄

@markushausammann
Copy link

There is a case when composer dump-autoload doesn't work and that's when a package is in the workbench and not installed via composer yet. Unfortunately, there is no --bench flag for the migrate:refresh task either so it seems impossible to refresh workbench migrations.

@swt83
Copy link
swt83 commented Jan 2, 2014

I also am having this issue w/ regard to workbench packages.

@robclancy
Copy link
Contributor
robclancy 8000 commented Jan 2, 2014

Add it to your composer.json autoload, you can do that. It works.

@jjwdesign
Copy link

"composer dump-autoload" seemed to work for me. Also perhaps "php artisan dump-autoload". I just wish this was documented somewhere.

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

9 participants
0