Files
mtdb_movie/app/Http/Controllers/SeasonEpisodesController.php
maher 703f50a09d
Some checks failed
Build / run (push) Has been cancelled
first commit
2025-10-29 11:42:25 +01:00

24 lines
544 B
PHP
Executable File

<?php
namespace App\Http\Controllers;
use App\Actions\Titles\Retrieve\PaginateSeasonEpisodes;
use App\Models\Title;
use Common\Core\BaseController;
class SeasonEpisodesController extends BaseController
{
public function __invoke(Title $title, int $seasonNumber)
{
$this->authorize('show', $title);
$pagination = app(PaginateSeasonEpisodes::class)->execute(
$title,
$seasonNumber,
request()->all(),
);
return $this->success(['pagination' => $pagination]);
}
}