php artisan drop table code example

Example 1: laravel migration rollback

To rollback one step:

php artisan migrate:rollback

To rollback multiple steps:

php artisan migrate:rollback --step=[x]
  
To drop all tables and reload all migrations:

php artisan migrate:fresh

Example 2: php artisan drop table

php artisan make:migration drop_name_table

Example 3: laravel drop table migration

Schema::drop('users');

Schema::dropIfExists('users');

Example 4: php artisan see last migration

php artisan migrate:status

Tags:

Php Example