Spaces:
Running
Running
Download app/Services/ScientistService.php from Ailixir-AI-Team/ailixir-api: direct link, hf CLI and curl.
- Browser
- Download file 465 Bytes
-
https://huggingface.co/spaces/Ailixir-AI-Team/ailixir-api/resolve/main/app/Services/ScientistService.php
- Command line
-
hf download hf://spaces/Ailixir-AI-Team/ailixir-api/app/Services/ScientistService.php
-
curl -L -o ScientistService.php https://huggingface.co/spaces/Ailixir-AI-Team/ailixir-api/resolve/main/app/Services/ScientistService.php
465 Bytes
| namespace App\Services; | |
| use App\Repositories\ScientistRepository; | |
| class ScientistService | |
| { | |
| protected $repository; | |
| public function __construct(ScientistRepository $repository) | |
| { | |
| $this->repository = $repository; | |
| } | |
| public function getScientists($perPage) | |
| { | |
| return $this->repository->paginate($perPage); | |
| } | |
| public function getScientist($id) | |
| { | |
| return $this->repository->findWithAwards($id); | |
| } | |
| } | |