Moved video files to public/videos directory, small refactoring.

This commit is contained in:
Krzysztof Płaczek committed 2023-03-30 12:46:30 +02:00
1 parent 5902bf7c2b
commit 5784cf8ed3
10 files changed
+42 -41

No files matched your search

+1 -2
View File
@@ -3,12 +3,11 @@
namespace App\Http\Controllers;
use App\Http\SymfonyCastDl\SymfonyCastDlService;
use App\Models\Chapter;
use App\Models\Course;
class ChapterController extends Controller
{
public function index(Course $course, int $chapter, SymfonyCastDlService $symfonyCastDlService)
public function __invoke(Course $course, int $chapter, SymfonyCastDlService $symfonyCastDlService)
{
$chapter = $course->chapters->firstWhere('order', $chapter);