migrate refresh code example

Example 1: migrate fresh

php artisan migrate:refresh

#https://www.fiverr.com/tamerjarrar

Example 2: 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 3: php artisan migration refresh

php artisan migrate:refresh --step=1

Example 4: what is the use of migration file in laravel

Simply put, Laravel migration is a way that allows you to create a table in your database, without actually going to the database manager such as phpmyadmin or sql lite or whatever your manager is

Example 5: create migration laravel

php artisan make:Model Product -m -c  --resource

Tags:

Misc Example