Files
symfonycast.local/app/Http/Controllers/Index.php
Krzysztof Płaczek b992d05312 Reading file size
2022-12-05 19:39:12 +01:00

24 lines
512 B
PHP

<?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(SymfonyCastDlService $symfonyCastDlService)
{
$symfonyCastDlService->getInfo();
}
}