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