Schema::create('categories', function (Blueprint $table) { $table->id(); $table->string('name')->unique(); $table->timestamps(); });