📌  相关文章
📜  参数 1 传递给 Illuminate\Database\Grammar::parameterize() - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:21.833000             🧑  作者: Mango

代码示例1
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