laravel migrate code example

Example 1: laravel migration seed fresh

php artisan migrate:fresh --seed

Example 2: migrate specific migration laravel

php artisan migrate  --path=/database/migrations/selected

Example 3: migration rollback

php artisan migrate:rollback

Example 4: laravel seed migrate

php artisan migrate:refresh --seed

Example 5: re migrate laravel

Try:
composer dump-autoload
php artisan config:cache

If not working also try:
php artisan migrate:refresh.

Example 6: create laravel migration

php artisan make:migration create_users_table

Tags:

Php Example