Hello Devs, 

In this tutorial, we will learn How To Create Table Migration In Laravel 8

We will also show how to run migration and rollback migration and how to create migration using command in laravel 8.

Follow this step-by-step guide below. 

Create Migration:

php artisan make:migration create_posts_table



use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreatePostTable extends Migration
     * Run the migrations.
     * @return void
    public function up()
        Schema::create('posts', function (Blueprint $table) {

     * Reverse the migrations.
     * @return void
    public function down()

Run Migration:

php artisan migrate

Create Migration with Table:

php artisan make:migration create_posts_table --table=posts

Migration Rollback:

php artisan migrate:rollback

May this example help you.