laravel migration drop if exists code example
Example 1: laravel rollback last migration
php artisan migrate:rollback --step=1
Example 2: laravel drop column if exists
if (Schema::hasColumn('users', 'phone')) {
Schema::table('users', function (Blueprint $table){
$table->dropColumn('phone');
});
}