migrate laravel code example

Example 1: migrate specific migration laravel

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

Example 2: migration rollback

php artisan migrate:rollback

Example 3: laravel seed migrate

php artisan migrate:refresh --seed

Example 4: re migrate laravel

Try:
composer dump-autoload
php artisan config:cache

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

Example 5: add column in laravel migration

php artisan make:migration add_paid_to_users_table --table=users

Example 6: laravel migrate database

php artisan migrate

Tags:

Sql Example