public static function role(array $attributes = []) { return static::make(Role::class, $attributes); }
/** * Get or create the role. * * @return \Silber\Bouncer\Database\Role */ protected function role() { if ($this->role instanceof Role) { return $this->role; } return Models::role()->firstOrCreate(['name' => $this->role]); }