migration refresh laravel code example
Example 1: how to migrate single table in laravel
php artisan migrate --path=/database/migrations/2020_04_10_130703_create_test_table.php
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
php artisan make:migration create_users_table --create=users
php artisan make:migration add_votes_to_users_table --table=users
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: php artisan migration refresh
php artisan migrate:refresh --step=1
Example 6: laravel make migration
php artisan make:migration CreateUsersTable