@@ -32,16 +32,16 @@ public function attributes()
3232 public function rules ()
3333 {
3434 return [
35- 'location_name ' => ['required ' , 'between:2,32 ' ],
36- 'location_email ' => ['required ' , 'email:filter ' , 'max:96 ' ],
35+ 'location_name ' => ['sometimes ' , ' required ' , 'between:2,32 ' ],
36+ 'location_email ' => ['sometimes ' , ' required ' , 'email:filter ' , 'max:96 ' ],
3737 'location_telephone ' => ['sometimes ' ],
38- 'location_address_1 ' => ['required ' , 'between:2,128 ' ],
38+ 'location_address_1 ' => ['sometimes ' , ' required ' , 'between:2,128 ' ],
3939 'location_address_2 ' => ['max:128 ' ],
4040 'location_city ' => ['max:128 ' ],
4141 'location_state ' => ['max:128 ' ],
4242 'location_postcode ' => ['max:10 ' ],
43- 'location_country_id ' => ['required ' , 'integer ' ],
44- 'options.auto_lat_lng ' => ['required ' , 'boolean ' ],
43+ 'location_country_id ' => ['sometimes ' , ' required ' , 'integer ' ],
44+ 'options.auto_lat_lng ' => ['sometimes ' , ' required ' , 'boolean ' ],
4545 'location_lat ' => ['sometimes ' , 'numeric ' ],
4646 'location_lng ' => ['sometimes ' , 'numeric ' ],
4747 'description ' => ['max:3028 ' ],
0 commit comments