php artisan refresh code example
Example 1: laravel migration seed fresh
php artisan migrate:fresh
Example 2: re migrate laravel
Try:
composer dump-autoload
php artisan config:cache
If not working also try:
php artisan migrate:refresh.
Example 3: artisan migration rollback
php artisan migrate:rollback
Example 4: laravel create migration
php artisan make:migration create_flights_table
php artisan make:migration create_flights_table
php artisan make:migration add_destination_to_flights_table
Example 5: 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 6: laravel migration
php artisan migrate