If Laravel is able to determine the table name from the migration name, Laravel will pre-fill the generated migration file with the specified table. Laravel will use the name of the migration to attempt to guess the name of the table and whether or not the migration will be creating a new table. Php artisan make:migration create_flights_table Each migration filename contains a timestamp that allows Laravel to determine the order of the migrations: The new migration will be placed in your database/migrations directory. You may use the make:migration Artisan command to generate a database migration. Typically, migrations will use this facade to create and modify database tables and columns. The Laravel Schema facade provides database agnostic support for creating and manipulating tables across all of Laravel's supported database systems.
If you have ever had to tell a teammate to manually add a column to their local database schema after pulling in your changes from source control, you've faced the problem that database migrations solve. Migrations are like version control for your database, allowing your team to define and share the application's database schema definition.