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