I want to insert data by seeder:
public function run()
{
$projects = [
[
"name" => "project-one",
"images" => ["image11.jpg", "image12.jpg", "image13.jpg"],
],
[
"name" => "project-two",
"images" => ["image21.jpg", "image22.jpg", "image23.jpg"],
],
];
Project::insert($projects);
}
images column is JSON, I get an array error on images insertion. How I can insert them?