user()?->can('device.credential.update') ?? false; } /** * Get the validation rules that apply to the request. * * @return array|string> */ public function rules(): array { $rules = StoreDeviceCredentialRequest::deviceCredentialRules(); $rules['password'] = ['nullable', 'string', 'max:4096']; return $rules; } }