@@ -202,6 +202,8 @@ class InitCourseCommand extends Command
$data = json_decode($data, true);
foreach ($data['Videos'] as $k => $v) {
$sort = $t - $k;
+ dd($sort);
+ dd($v);
Video::query()->where('course_id', 'in', $courses)->where('title', $v['name'])->update(['sort' => $sort]);
}