Answers for "Type error: Argument 1 passed to Illuminate\Database\Grammar::parameterize()"

PHP
1

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');
Posted by: Guest on November-11-2020
0

Argument 1 passed to Illuminate\Database\Grammar::parameterize()

Your tags input is an array of values, so you cannot just store a php array 
into a database column.

If your tags is a varchar in your database, then try to implode the elements 
into a string:

$lesson->tags= implode(', ', $request->input('tags'));

This will store it as a comma separated list of values: programming, tech ..
so on, whatever your tags are.

reference:
https://stackoverflow.com/questions/57933670/how-to-fix-error-argument-1-passed-to-illuminate-database-grammarparameterize
Posted by: Guest on February-11-2021

Code answers related to "Type error: Argument 1 passed to Illuminate\Database\Grammar::parameterize()"

Browse Popular Code Answers by Language