私のクエリは、このようなものです:解決方法タイプエラー:Rinvex Repository Repositories EloquentRepository :: findWhereNotIn()に渡された引数1は配列型でなければなりませんか?
$this->user_repository->findWhereNotIn('id', [1, 2, 3, 4]);
実行すると、このようなエラーが存在する:私のクエリは正しい
どのようにあるよう
[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
チュートリアルhttps://github.com/rinvex/repository#findwherenotinで、それが見えるのに対し私はそれを解決する?
'引数は1' id'が配列されていない 'を意味します – Machavity
代わりに '['id']'を使用しようとしています – Onix
@Onix、動作しません。エラーが存在します: '[ErrorException] foreach()の引数が無効です –