Added total time of a course, marking chapters and courses to sync offline.

This commit is contained in:
Krzysztof Płaczek committed 2022-09-15 14:35:02 +02:00
1 parent fc23506f92
commit b158ec6b5d
9 files changed
+43 -14

No files matched your search

@@ -22,4 +22,11 @@ class CourseController extends Controller
dd($chapter->toArray());
}
public function sync(Course $course)
{
$course->chapters->each->update(['sync_offline' => 1]);
return redirect(route('course.index', ['course' => $course]));
}
}