25 lines
525 B
PHP
25 lines
525 B
PHP
<?php
|
|
|
|
namespace App\Repositories\DnsManager\Server;
|
|
|
|
use App\Models\DnsServer;
|
|
use App\Repositories\BaseRepository;
|
|
|
|
class DnsServerRepository extends BaseRepository implements DnsServerRepositoryInterface
|
|
{
|
|
public function getModel(): string
|
|
{
|
|
return DnsServer::class;
|
|
}
|
|
|
|
public function getActived()
|
|
{
|
|
return $this->model->isActive()->get();
|
|
}
|
|
|
|
public function findWhereIn(string $key, array $value = [])
|
|
{
|
|
return $this->model->whereIn($key, $value)->get();
|
|
}
|
|
}
|