Error when migration php artisan
mehrshaddarzi opened this issue · 3 comments
mehrshaddarzi commented
sonnxx commented
I also have the same problem.
using:
- Laravel Framework 8.47.0
- PHP 7.4.20 (cli)
sonnxx commented
Please Check:
Check the namespace, if your PSR-4 namespace won't match the class file location you will likely get that error. Run composer dump-autoload afterwards to be on a save side.
If not work and you can.
php artisan make:migration extendToxonomiesTable
A file in the database folder will be initialized. And you can copy code at file old to new file.
Remember to keep an eye on Classname
run command final
php artisan migrate --path={{path-new-file-migration}}
AlexanderPoellmann commented
My bad, fixed this in the latest commit.