Files
symfonycast.local/app/Http/Controllers/Index.php
2022-11-16 07:18:21 +01:00

25 lines
547 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();
// dd($courses->toArray());
return view('index', compact(['courses']));
}
public function download(SymfonyCastDlService $symfonyCastDlService)
{
$symfonyCastDlService->getInfo();
}
}