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