1Your tags input is an array of values, so you cannot just store a php array
2into a database column.
3
4If your tags is a varchar in your database, then try to implode the elements
5into a string:
6
7$lesson->tags= implode(', ', $request->input('tags'));
8
9This will store it as a comma separated list of values: programming, tech ..
10so on, whatever your tags are.
11
12reference:
13https://stackoverflow.com/questions/57933670/how-to-fix-error-argument-1-passed-to-illuminate-database-grammarparameterize
1 Error:Type error: Argument 1 passed to Illuminate\Database\Grammar::parameterize()
2 $not->addNot([$P->u_id],'Hold', 6, '0');
3
4 Solve: Remove this [] from first parameter.
5 $not->addNot($P->u_id,'Hold', 6, '0');