load(['servers.node', 'servers.user']); } $pack->loadMissing(['servers.node', 'servers.user']); return $pack; } /** * Return a paginated listing of packs with their associated egg and server count. * * @return \Illuminate\Contracts\Pagination\LengthAwarePaginator */ public function paginateWithEggAndServerCount(): LengthAwarePaginator { return $this->getBuilder()->with('egg')->withCount('servers') ->paginate(50, $this->getColumns()); } }