run migration in laravel code example
Example 1: laravel run single migration
php artisan migrate --path=/database/migrations/my_migration.php
Example 2: migration rollback
php artisan migrate:rollback
Example 3: php artisan run migration
php artisan migrate
Example 4: create laravel migration
php artisan make:migration create_users_table
Example 5: Generate Laravel Migrations from an existing database
composer require --dev "xethron/migrations-generator"
Example 6: laravel migration drop foreign keys
$table->dropIndex(['state']); // Drops index 'geo_state_index'