Laravel Migrations: Tables

Creating Tables

Schema::create('users', function (Blueprint $table) {
    $table->increments('id');
});

Of course, when creating the table, you may use any of the schema builder's column methods to define the table's columns.

Renaming / Dropping Tables

Schema::rename($from, $to);
Schema::drop('users');

Schema::dropIfExists('users');

Laravel Migrations: Tables — Structure map

Clickable & Draggable!

Laravel Migrations: Tables — Related pages: