check() && auth()->user()->hasRole('owner'); } /** * @return array */ public function getConfigurationData(): array { return [ 'single_user_mode' => $this->boolean('single_user_mode'), 'is_demo_site' => $this->boolean('is_demo_site'), ]; } /** * @return array */ public function rules() { $rules = [ 'single_user_mode' => 'between:0,1|numeric', 'is_demo_site' => 'between:0,1|numeric', ]; return $rules; } }