id('permission_id'); $table->timestamps(); $table->addColumn('string', 'permission_name', ['length' => 255]); $table->unique(['permission_name']); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('permissions'); } };