Skip to main content

All Questions

1 vote
1 answer
974 views

Laravel7, user's phone (unique) by update throw 'The phone has already been taken.'

In profile.blade, while updating the inputs in the profile getting Error The phone has already been taken. Controller: public function profileUpdate(Request $request) { $user = Auth::user(); $...
Yassin's user avatar
  • 27
0 votes
0 answers
214 views

Laravel: validate unique arrays on update

I know when I need to update value in database I can use unique rule like this 'name' => 'unique:phones,name,'.$request->phone_id, But how can I apply third argument to unique rule when I am ...
Tomas Cerniauskas's user avatar