mirror of
https://github.com/pterodactyl/panel.git
synced 2026-12-04 05:15:41 -05:00
Co-authored-by: Anthony <anthony@infraly.co> Co-authored-by: Sky Mulley <daniel.mulley@outlook.com>
16 lines
291 B
PHP
16 lines
291 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Pterodactyl\Services\Servers;
|
|
|
|
use Pterodactyl\Models\Server;
|
|
|
|
class ServerFinderService
|
|
{
|
|
public function byExternalId(string $externalId): Server
|
|
{
|
|
return Server::query()->where('external_id', $externalId)->firstOrFail();
|
|
}
|
|
}
|