Thursday, March 2, 2017

How to solve Type error: Argument 1 passed to Rinvex\Repository\Repositories\EloquentRepository::findWhereNotIn() must be of the type array?

My query is like this :

$this->user_repository->findWhereNotIn('id', [1, 2, 3, 4]);

When executed, there exist error like this :

[Symfony\Component\Debug\Exception\FatalThrowableError] Type error: Argument 1 passed to Rinvex\Repository\Repositories\EloquentRepository::findWhereNotIn() must be of the type array, string given, called in C:\xampp\htdocs\myshop\app\Console\Commands\Check.php on line 48

Whereas in the tutorial http://ift.tt/2mPm9Ru, it looks like my query is correct

How can I solve it?




via moses toh

Advertisement