Answer the question
In order to leave comments, you need to log in
What's wrong with the unique validator in Laravel 5.7?
Hello comrades!
Tell me why the validator:
Swears: Class users does not exist
There is a table in the database, but it fights like a class
If you go to the vendor, then the table is required there:Rule::unique('users')->ignore($uid, 'id')
public static function unique($table, $column = 'NULL')
{
return new Rules\Unique($table, $column);
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question