Working interface and parsed symfony cast data to a database.

This commit is contained in:
Krzysztof Płaczek
2022-08-23 08:09:14 +02:00
parent 119b94470f
commit a92c75c1dd
22 changed files with 488 additions and 224 deletions

View File

@@ -0,0 +1,23 @@
<?php
namespace App\Http\Controllers;
use App\Http\SymfonyCastDl\HtmlParser;
use App\Http\SymfonyCastDl\SymfonyCastDlService;
use App\Models\Course;
use Illuminate\Http\Request;
class Index extends Controller
{
public function index()
{
$courses = Course::with('chapters')->withCount('chapters')->get();
return view('index', compact(['courses']));
}
public function download(HtmlParser $htmlParser)
{
$service = new SymfonyCastDlService($htmlParser);
$service->getInfo();
}
}