23 lines
485 B
PHP
23 lines
485 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Repositories;
|
|
|
|
use App\Models\ClientLocation;
|
|
|
|
class ClientLocationRepository extends BaseRepository implements ClientLocationRepositoryInterface
|
|
{
|
|
public function __construct(ClientLocation $model)
|
|
{
|
|
parent::__construct($model);
|
|
}
|
|
|
|
public function getByClientId(int $client_id)
|
|
{
|
|
$query = $this->model->newQuery();
|
|
$query->where('client_id', $client_id);
|
|
return $query->get();
|
|
}
|
|
}
|