CodeIgniter Laravel PHP Example HTML Javascript jQuery MORE Videos New

Laravel Migration


To generate migration file, use make:migration artisan command

Ex. To create table

php artisan make:migration create_users_table

To add column in existing table

php artisan make:migration add_newColumn_to_tableName_table --table=tableName

We can open newly created migration file(database/migrations) and modify according to requirement.

To run all of outstanding migration use following command.

php artisan migrate --force