how to migrate new table in laravel code example

Example 1: how to migrate single table in laravel

php artisan migrate --path=/database/migrations/2020_04_10_130703_create_test_table.php

Example 2: create migration table in php

php artisan make:migration create_users_table

Example 3: create database from migration laravel for all

php artisan migrate:refresh

php artisan migrate:refresh --seed

Example 4: migrate to an existing table in laravel commad

public function up()
{
    Schema::table('users', function($table) {
        $table->integer('paid');
    });
}

Tags:

Misc Example