How can I have a unique validation rule on 2 fields?
a. The application should not allow two people to have the same identical first name and last name.
It i
in my case this works just fine (in controller):
$request->validate([ 'firstName' => 'required|min:3|max:255|unique:people,firstName,NULL,id,lastname,' . $request->input('lastname'), ], [ 'unique' => 'Some message for "unique" error', ]);