A bunch of useful commands & info about Laravel.
Refresh the .env file used by the application :
php artisan config:clear
Create a new migration file :
php artisan make:migration <your_migration_name>
Check which migrations have been run on current DB :
php artisan migrate:status
Preview the queries that will be executed when running the migration :
php artisan migrate --pretend
Run all migrations :
php artisan migrate
Rollback migrations :
# 1 migration
php artisan migrate:rollback
# X migrations
php artisan migrate:rollback --step=<X>
# All migrations
php artisan migrate:reset