migrare laravel
php artisan migrate
retragerea migrației
php artisan migrate:rollback
artisan rollback o migrare
php artisan migrate:rollback --step=1
laravel creează modelul și migrația
# If you would like to generate a database migration when you
# generate the model, you may use the --migration or -m option:
php artisan make:model Flight --migration
php artisan make:model Flight -m
număr întreg de migrare laravel
$table->bigInteger('votes');
rollback migrare laravel
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