Spaces:
Running
Running
Download app/Http/Controllers/AjaxControllers/V1/Frontend/ChapterController.php from lisatthu35/ewa: direct link, hf CLI and curl.
- Browser
- Download file 930 Bytes
-
https://huggingface.co/spaces/lisatthu35/ewa/resolve/main/app/Http/Controllers/AjaxControllers/V1/Frontend/ChapterController.php
- Command line
-
hf download hf://spaces/lisatthu35/ewa/app/Http/Controllers/AjaxControllers/V1/Frontend/ChapterController.php
-
curl -L -o ChapterController.php https://huggingface.co/spaces/lisatthu35/ewa/resolve/main/app/Http/Controllers/AjaxControllers/V1/Frontend/ChapterController.php
930 Bytes
| namespace App\Http\Controllers\AjaxControllers\V1\Frontend; | |
| use App\Http\Controllers\BaseController; | |
| use App\Http\Requests\ApiChapterRequest; | |
| use App\Services\ChapterServices; | |
| use App\Services\ComicServices; | |
| use App\Services\ContentImageServices; | |
| use App\Tranformers\ContentImageResource\ContentImageListResource; | |
| use App\Tranformers\ChapterResource\ChapterListResource; | |
| use Illuminate\Http\Request; | |
| use Illuminate\Support\Facades\DB; | |
| class ChapterController extends BaseController | |
| { | |
| private $contentImageServices; | |
| public function __construct(ContentImageServices $contentImageServices) | |
| { | |
| $this->contentImageServices = $contentImageServices; | |
| parent::__construct(); | |
| } | |
| public function show(Request $request,$comic_code,$id) | |
| { | |
| $contentImages = $this->contentImageServices->findByChapterId($request,$id); | |
| return new ContentImageListResource($contentImages); | |
| } | |
| } | |