user()->is_admin; } public function rules(): array { return [ 'name' => 'required', 'email' => 'required|email|unique:users,email,'.$this->route('user')->id, ]; } }