Laravel The migration files


Example

Migrations in a Laravel 5 application live in the database/migrations directory. Their filenames conform to a particular format:

<year>_<month>_<day>_<hour><minute><second>_<name>.php

One migration file should represent a schema update to solve a particular problem. For example:

2016_07_21_134310_add_last_logged_in_to_users_table.php

Database migrations are kept in chronological order so that Laravel knows in which order to execute them. Laravel will always execute migrations from oldest to newest.