mead пре 2 месеци
родитељ
комит
e318f5ed0c
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      app/Console/Commands/InitCourseCommand.php

+ 1 - 0
app/Console/Commands/InitCourseCommand.php

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