increments('id'); $table->integer('inherit_id')->unsigned()->nullable()->index(); $table->foreign('inherit_id')->references('id')->on('permissions'); $table->string('name')->index(); $table->string('slug')->index(); $table->text('description')->nullable(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::drop('permissions'); } }