/** * Run the migrations. * * @return void */ public function up() { Schema::create('role_user', function (Blueprint $table) { $table->increments('id'); $table->integer('role_id'); $table->integer('user_id'); $table->timestamps(); }); $rel = new Role_User(); $rel->user_id = \Laralum::user('email', env('USER_EMAIL', '*****@*****.**'))->id; $rel->role_id = \Laralum::role('name', env('ADMINISTRATOR_ROLE_NAME', 'Administrator'))->id; $rel->save(); }