user(); } /** * Get the validation rules that apply to the request. * * @return array|string> */ public function rules(): array { return [ 'purchase_id' => ['required', 'integer', 'exists:package_purchases,id'], ]; } }