Level 102
Are you sure? You wrote users in one place and permissions in another?
Also check database/migrations for a migration with the same name/class
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I want to create new table with this:
php artisan make:migration create_contacts_table
But while I am running this command this error is coming.
PHP Fatal error: Cannot declare class CreatePermissionTables, because the name is already in use
I am using Spatie Laravel Permission.
And now you have contacts in one place and permissions in another?
Do you get this error no matter what you write as migration name?
Please or to participate in this conversation.