refresh migration laravel code example
Example 1: migrate fresh
php artisan migrate:refresh
#https://www.fiverr.com/tamerjarrar
Example 2: re migrate laravel
Try:
composer dump-autoload
php artisan config:cache
If not working also try:
php artisan migrate:refresh.
Example 3: laravel migration rollback
To rollback one step:
php artisan migrate:rollback
To rollback multiple steps:
php artisan migrate:rollback --step=[x]
To drop all tables and reload all migrations:
php artisan migrate:fresh
Example 4: artisan refresh
Try this command it works for me
php artisan migrate:fresh
However, be careful! This command will drop all data from your DB:
Example 5: laravel migration
php artisan migrate
Example 6: php artisan migration refresh
php artisan migrate:refresh --step=1