Working interface and parsed symfony cast data to a database.
This commit is contained in:
25
app/Http/Controllers/CourseController.php
Normal file
25
app/Http/Controllers/CourseController.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Http\SymfonyCastDl\HtmlParser;
|
||||
use App\Http\SymfonyCastDl\SymfonyCastDlService;
|
||||
use App\Models\Chapter;
|
||||
use App\Models\Course;
|
||||
use Illuminate\View\View;
|
||||
|
||||
class CourseController extends Controller
|
||||
{
|
||||
public function index(Course $course): View
|
||||
{
|
||||
return view('course.index', compact('course'));
|
||||
}
|
||||
|
||||
public function chapter(Chapter $chapter, HtmlParser $htmlParser)
|
||||
{
|
||||
$service = new SymfonyCastDlService($htmlParser);
|
||||
$service->videoSize($chapter);
|
||||
|
||||
dd($chapter->toArray());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user