route('dumpsite')?->id; return [ 'name' => ['sometimes', 'required', 'string', 'max:191'], 'code' => [ 'sometimes', 'nullable', 'string', 'max:32', Rule::unique('dumpsites', 'code')->whereNull('deleted_at')->ignore($id), ], 'address_line' => ['sometimes', 'required', 'string', 'max:255'], 'city_municipality_id' => ['sometimes', 'required', 'integer', 'exists:cities_municipalities,id'], 'lat' => ['sometimes', 'required_with:lng', 'numeric', 'between:-90,90'], 'lng' => ['sometimes', 'required_with:lat', 'numeric', 'between:-180,180'], 'geofence_wkt' => ['sometimes', 'nullable', 'string'], 'accepted_waste_types' => ['sometimes', 'nullable', 'array'], 'operating_hours' => ['sometimes', 'nullable', 'array'], 'capacity_tons' => ['sometimes', 'nullable', 'integer', 'min:0'], 'contact_person' => ['sometimes', 'nullable', 'string', 'max:191'], 'contact_phone' => ['sometimes', 'nullable', 'string', 'max:32'], 'permit_number' => ['sometimes', 'nullable', 'string', 'max:100'], 'status' => ['sometimes', Rule::in([ Dumpsite::STATUS_ACTIVE, Dumpsite::STATUS_MAINTENANCE, Dumpsite::STATUS_CLOSED, ])], ]; } }