Closed matheusbrdev closed 1 year ago
I'm not entirely sure what the issue here is? You indeed need to reference the correct namespace.
Yes, need. But the namespace was shown like a correct... it's the wrong!
I need open another issue? Because you closed that
@matheusbrdev yes your right. I faced the same issue "Illuminate\Database\Query\Builder" works fine.
Description:
I try to use the Unique Rule in validations:
But i this exception is throw:
Argument #1 ($query) must be of type Illuminate\\Database\\Eloquent\\Builder, Illuminate\\Database\\Query\\Builder given, called in /var/www/html/vendor/laravel/framework/src/Illuminate/Validation/DatabasePresenceVerifier.php on line 85
But if you change to this:
It's work!. The Illuminate\Database\Query\Builder namespace was shown like a wrong, but it's actually the correct one!
Steps To Reproduce:
Rule::unique()->where()
method;