<?php namespace App\Repository; use App\Models\PipedriveUser; class PipedriveUserRepository { public function getByExternalId(int $externalId) { return PipedriveUser::query()->where('external_id', $externalId)->first(); } }