update fix deadcode, security
This commit is contained in:
@@ -12,11 +12,6 @@ class DnsDomainRepository extends BaseRepository implements DnsDomainRepositoryI
|
||||
return DnsDomain::class;
|
||||
}
|
||||
|
||||
public function findDomain(string $domain = '')
|
||||
{
|
||||
return $this->model->where('domain_name', $domain)->first();
|
||||
}
|
||||
|
||||
public function filter(array $data = [], array $relationships = [], string $order = 'id', array $select = ['*'])
|
||||
{
|
||||
$model = $this->model;
|
||||
@@ -76,14 +71,4 @@ class DnsDomainRepository extends BaseRepository implements DnsDomainRepositoryI
|
||||
|
||||
return $model->get();
|
||||
}
|
||||
|
||||
public function findWhereIn(string $key, array $value = [])
|
||||
{
|
||||
return $this->model->whereIn($key, $value)->get();
|
||||
}
|
||||
|
||||
public function findWithRelations(int $id, array $relationships = [])
|
||||
{
|
||||
return $this->model->with($relationships)->find($id);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user