Replace simple paginator
This commit is contained in:
parent
679a25a763
commit
ed75f5cbfb
3 changed files with 1 additions and 17 deletions
|
@ -133,15 +133,4 @@ class ServerRepository extends EloquentRepository implements ServerRepositoryInt
|
|||
throw new RecordNotFoundException();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns all the servers that exist for a given node in a paginated response.
|
||||
*/
|
||||
public function loadAllServersForNode(int $node, int $limit): LengthAwarePaginator
|
||||
{
|
||||
return $this->getBuilder()
|
||||
->with(['user', 'nest', 'egg'])
|
||||
->where('node_id', '=', $node)
|
||||
->paginate($limit);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue