part of my controller $validator = Validator::make($request->all(), [ 'displayed_total_rate' => 'required', 'is_dropoff_city_defferent' => 'nullable|in:1,0', //some other fields ... ]); $validator->after(function ($validator) use ($request) { if (!$validator->fails()) { ...
Home/larevel