table laravel 1

table laravel

// use the make:migration Artisan command to generate a database migration
php artisan make:migration create_flights_table

// use --create to indicate whether the migration will be creating a new table
php artisan make:migration create_flights_table --create=flights

// use --table to indicate the table name
php artisan make:migration add_destination_to_flights_table --table=flights

Here is what the above code is Doing:
1. The first argument passed to the make:migration command is the name of the migration.
2. The –create option is used to indicate the name of the table to be created.
3. The –table option is used to indicate the name of the table to be altered.

Similar Posts