Laravel DB php artisan command - RoyalFlushever/S-connect GitHub Wiki

Generating Migrations

To create a migration, use the make:migration Artisan command:

php artisan make:migration create_users_table

The --table and --create options may also be used to indicate the name of the table and whether the migration will be creating a new table. These options pre-fill the generated migration stub file with the specified table:

php artisan make:migration create_users_table --create=users

php artisan make:migration add_votes_to_users_table --table=users

Forcing Migrations To Run In Production

`php artisan migrate --force`

Rolling Back Migrations

`php artisan migrate:rollback`

Refresh the database and run all database seeds...

`php artisan migrate:refresh --seed`
⚠️ **GitHub.com Fallback** ⚠️