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