user(); } /** * Get the validation rules that apply to the request. * * @return array|string> */ public function rules(): array { return [ 'package_id' => ['required', 'exists:packages,id'], 'success_url' => ['nullable', 'url'], 'return_url' => ['nullable', 'url'], 'coupon_code' => ['nullable', 'string', 'max:64'], 'accepted_terms' => ['required', 'boolean', 'accepted'], ]; } public function messages(): array { return [ 'package_id.exists' => 'Das ausgewählte Paket ist ungültig.', 'accepted_terms.accepted' => 'Bitte akzeptiere die Nutzungsbedingungen.', ]; } }