protected function getModel() { if ($this->model instanceof Model) { return $this->model; } return Models::role()->where('name', $this->model)->first(); }