Answer the question
In order to leave comments, you need to log in
How to make validation for uniqueness plus a few more conditions?
There is a validator
$validator = Validator::make($data, [
'id' => 'unique:mongodb.users,id',
], [
'status_code.unique' => 'error',
]);
Answer the question
In order to leave comments, you need to log in
but if this entry does not have deleted_at
{
use SoftDeletes;
}
of course spelled out
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question