allow sorting by course name and published date, link to manually update course details,

This commit is contained in:
Krzysztof Płaczek
2023-04-07 14:43:51 +02:00
parent 32ead90121
commit a15c6a1a44
6 changed files with 51 additions and 11 deletions

View File

@@ -0,0 +1,17 @@
<?php
namespace App\Http\Controllers\Course;
use App\Http\Controllers\Controller;
use App\Http\SymfonyCastDl\SymfonyCastDlService;
use App\Models\Course;
use Illuminate\Http\RedirectResponse;
class Update extends Controller
{
public function __invoke(SymfonyCastDlService $symfonyCastDlService, Course $course): RedirectResponse
{
$symfonyCastDlService->updateCourse($course);
return redirect()->back();
}
}