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

20 lines
417 B
PHP
Executable File

<?php
namespace App\Http\Controllers;
use App\Actions\Lists\ListsLoader;
use App\Models\Channel;
use Common\Core\BaseController;
class ListsController extends BaseController
{
public function index()
{
$this->authorize('index', [Channel::class, 'list']);
$pagination = (new ListsLoader())->allLists(request()->all());
return $this->success(['pagination' => $pagination]);
}
}