Last active
December 20, 2020 04:57
-
-
Save owenconti/6537495cc28698876a6a4e793e1d5a47 to your computer and use it in GitHub Desktop.
How to fix "cannot declare class because the name is already in use" error in Laravel/PHP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
php artisan optimize:clear | |
composer dump-autoload |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Laravel Cashier includes this migration file: | |
vendor/laravel/cashier/database/migrations/2019_05_03_000001_create_customer_columns.php | |
# I opted to publish the migrations to my codebase | |
database/migrations/2019_05_03_000001_create_customer_columns.php | |
# I then renamed the migration file so I could change the order relative to my other migrations: | |
database/migrations/2020_10_01_000001_create_customer_columns.php |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment