['required', 'email', 'max:254'], ]; } public function authorize(): bool { if (Options::getOption('enable_registrations')) { return false; } return true; } protected function failedAuthorization() { throw new AuthorizationException(__('You cannot request a new invite for this user/e-mail address right now. Keep in mind that users can only be invited once.')); } }