create migration laravel 8 code example
Example 1: create laravel migration
php artisan make:migration create_users_table
Example 2: laravel create migration
php artisan make:migration create_flights_table
php artisan make:migration create_flights_table --create=flights
php artisan make:migration add_destination_to_flights_table --table=flights
Example 3: laravel make model with migration 5.8
php artisan make:model Settings --migration
Example 4: migrate to an existing table in laravel commad
php artisan make:migration add_paid_to_users_table --table=users
Example 5: migrate to an existing table in laravel commad
public function up()
{
Schema::table('users', function($table) {
$table->integer('paid');
});
}