..
This commit is contained in:
@@ -28,16 +28,6 @@ class CampusService extends AetherCrudService implements CampusServiceInterface
|
||||
#[Inject]
|
||||
protected CampusValidator $validator;
|
||||
|
||||
protected function getModel(): AetherModel
|
||||
{
|
||||
return $this->model;
|
||||
}
|
||||
|
||||
protected function getValidator(): AetherValidator
|
||||
{
|
||||
return $this->validator;
|
||||
}
|
||||
|
||||
public function getCampusById(int $id): array
|
||||
{
|
||||
$campus = Campus::find($id);
|
||||
@@ -81,4 +71,14 @@ class CampusService extends AetherCrudService implements CampusServiceInterface
|
||||
->get(['id', 'name', 'city'])
|
||||
->toArray();
|
||||
}
|
||||
|
||||
protected function getModel(): AetherModel
|
||||
{
|
||||
return $this->model;
|
||||
}
|
||||
|
||||
protected function getValidator(): AetherValidator
|
||||
{
|
||||
return $this->validator;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user