Laravel batch assignment error Array to string conversion

$create = [
            "title" => $data["title"],
            "describes" => $data["introduce"],
            "promotions_detail" => json_encode([
                "type" => $data["discount_type"],
                "point" => $data["discount"]
            ]),
            "time_limit" => $data["deadline"],
            "extend" => json_encode($data),
            "status" => 1
        ];
        $res = Coupon::create($create);

an error will be reported by writing to the database in this way. What is the reason, the version of php7.2

Mar.21,2021

the code you posted looks fine. Which line of errors are reported, and data data ensures that there are no errors, and there is another way to write them while making sure there are no errors:
$create ['title'] = $data [' title'];
$create ['describes'] = $data [' introduce'];
$res = Coupon::create ($create);
or $res = Coupon::insert ($create);)


is there no whitelist


Menu