ailixir-api / app /Services /ScientistService.php
AILIXIR Bot
Auto-sync: 201d269f287526269b8ffded5f450ff36b46c740
907b200
Raw
History Blame Contribute Delete
465 Bytes
<?php
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);
}
}