Вот мои правила проверки формы:
Код: Выделить всё
return [
'first_name' => 'required|string|max:255',
'last_name' => 'nullable|string|max:255',
'other_names' => 'nullable|string|max:255',
'city' => 'nullable|string|max:255',
'country' => 'nullable|string|max:255',
'email' => ['required_if:phone,null', Rule::unique('guests')->whereNot('email',null)->where('hotel_id',auth()->user()->hotel_id) ],
'phone' => ['required_if:email,null', Rule::unique('guests')->where('phone','!=', $request->phone)->where('hotel_id',auth()->user()->hotel_id) ],
'address' => 'nullable|string|max:255',
'other_phone' => 'nullable|numeric:11',
];
Подробнее здесь: https://stackoverflow.com/questions/783 ... ing-update