laravel4-datatables-package
laravel4-datatables-package copied to clipboard
trim() expects parameter 1 to be string, array given #717
->filterColumn('prod_id', 'whereIn', 'prod_id', [38,42,16])
Error:\vendor\bllim\datatables\src\Bllim\Datatables\Datatables.php717 trim() expects parameter 1 to be string, array given
does this work?
->filterColumn('prod_id', 'whereIn', 'prod_id', '38,42,16')
or this ->filterColumn('prod_id', 'whereIn', 'prod_id', implode(',',[38,42,16]))
->filterColumn('prod_id', 'whereIn', 'prod_id', '38,42,16')
it show error: Argument 1 passed to Illuminate\Database\Grammar::parameterize() must be of the type array, string given, called in E:\web\sudehuishou\vendor\laravel\framework\src\Illuminate\Database\Query\Grammars\Grammar.php on line 311 and defined