Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

mniblett's avatar

migration error when running refresh or reset

When I run Migrate:rollback, rest or refresh I get the following error: [Symfony\Component\Debug\Exception\FatalThrowableError] Class 'CreateInvitationsTable' not found

The createInvitationsTable class is there inside my Migrations folder along with the other default migrations.

When I check the status of my migrations the create_invitations_table migration status is Y, along with all the other tables, so it ran when I did the original migration.

Any idea what could be causing this error?

(I ended up just deleting the database and starting over)

0 likes
2 replies
zachleigh's avatar

Maybe your migration is spelled wrong: 'create_inviattions_table'

mniblett's avatar
mniblett
OP
Best Answer
Level 5

typo was in forum post not code. No idea what was going on, but since I was resetting the database I just went into mysql and dropped it then recreated it and re-ran the migration.

Please or to participate in this conversation.