Moved video files to public/videos directory, small refactoring.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user