Download app/Services/GenreServices.php from dumamai/java-fpm: direct link, hf CLI and curl.
- Browser
- Download file 573 Bytes
-
https://huggingface.co/spaces/dumamai/java-fpm/resolve/main/app/Services/GenreServices.php
- Command line
-
hf download hf://spaces/dumamai/java-fpm/app/Services/GenreServices.php
-
curl -L -o GenreServices.php https://huggingface.co/spaces/dumamai/java-fpm/resolve/main/app/Services/GenreServices.php
573 Bytes
| namespace App\Services; | |
| use App\Models\Genre as GenreModel; | |
| class GenreServices extends BaseServices | |
| { | |
| public function __construct(GenreModel $model) | |
| { | |
| parent::__construct($model); | |
| } | |
| public function index($request) | |
| { | |
| // $limit = $request->get('limit', GenreModel::LIMIT_PAGE); | |
| $query = $this->model; | |
| return $query->get(); | |
| } | |
| public function show($chapterNumber) | |
| { | |
| $data = $this->model->where('chapter_number', $chapterNumber)->with('contentImages')->first(); | |
| return $data; | |
| } | |
| } | |