laravel migrate fresh code example

Example 1: laravel migration seed fresh

php artisan migrate:fresh --seed

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: laravel migrate database

php artisan migrate

Example 5: laravel migration

php artisan make:migration create_users_table --create=users

php artisan make:migration add_votes_to_users_table --table=users

Example 6: 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:

Tags:

Misc Example