check() and $this->ajax(); } /** * Get the validation rules that apply to the request. * * @return array */ public function rules() { return [ 'id' => 'required|exists:week_plannings,id', 'day' => 'required|numeric', 'row' => [ 'required', new EnumIsValidRule(TableRow::class) ], ]; } }