E
E
EVOSandru62018-11-22 13:44:42
Laravel
EVOSandru6, 2018-11-22 13:44:42

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);
    }

lARAVEL 5.7

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
Yuri, 2018-11-22
@modestguy

Error elsewhere.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question