laravel migrate file code example
Example 1: laravel rollback last migration
php artisan migrate:rollback --step=1
Example 2: migration rollback
php artisan migrate:rollback
Example 3: re migrate laravel
Try:
composer dump-autoload
php artisan config:cache
If not working also try:
php artisan migrate:refresh.
Example 4: what is the use of migration file in laravel
Simply put, Laravel migration is a way that allows you to create a table in your database, without actually going to the database manager such as phpmyadmin or sql lite or whatever your manager is