can't save new data, and Array to string conversion?
问题 Model in laravel "Array to string conversion (SQL: update spent_times set updated_at = 2018-10-18 06:02:29, spent_time = 12, percentage = 60.00, task_category = testing where id = 7) ◀" public static function findOrCreate($plan_id, $data) { $fromDate = Carbon::now()->subDay()->startOfWeek()->toDateString(); $nowDate = Carbon::now()->today()->toDateString(); $spent_time = static::where('plan_id', $plan_id)->first(); if (is_null($spent_time)) { return static::create($data); }else{ $new_spent