Replace egg relations method

This commit is contained in:
Lance Pioch 2022-10-20 20:19:18 -04:00
parent 5331fd2cdb
commit f45b7b5996
3 changed files with 7 additions and 26 deletions

View file

@ -20,18 +20,6 @@ class ServerRepository extends EloquentRepository implements ServerRepositoryInt
return Server::class;
}
/**
* Load the egg relations onto the server model.
*/
public function loadEggRelations(Server $server, bool $refresh = false): Server
{
if (!$server->relationLoaded('egg') || $refresh) {
$server->load('egg.scriptFrom');
}
return $server;
}
/**
* Return a collection of servers with their associated data for rebuild operations.
*/