user()?->tokenCan('newsletter:subscribe') === true; } /** * Get the validation rules that apply to the request. * * @return array|string> */ public function rules(): array { return [ 'portal' => ['required', Rule::in([ Portal::Presseecho->value, Portal::Businessportal24->value, ])], 'email' => ['required', 'email', 'max:190'], 'salutation_key' => ['nullable', 'string', 'max:20'], 'first_name' => ['nullable', 'string', 'max:80'], 'last_name' => ['nullable', 'string', 'max:80'], ]; } }