/** * Run the migrations. * * @return void */ public function up() { Schema::create('roles', function (Blueprint $table) { $table->increments('id'); $table->string('name')->unique(); $table->timestamps(); }); Role::create(['name' => Role::ADMINISTRATOR]); Role::create(['name' => Role::EDITOR]); Role::create(['name' => Role::AUTHOR]); Role::create(['name' => Role::CONTRIBUTOR]); Role::create(['name' => Role::SUBSCRIBER]); }