Argument 1 passed to Illuminate\Database\Grammar::parameterize() must be of the type array, int given laravel code example
Example: Type error: Argument 1 passed to Illuminate\Database\Grammar::parameterize()
Error:Type error: Argument 1 passed to Illuminate\Database\Grammar::parameterize()
$not->addNot([$P->u_id],'Hold', 6, '0');
Solve: Remove this [] from first parameter.
$not->addNot($P->u_id,'Hold', 6, '0');