feat: Implement DNS management with dedicated models, repositories, requests, controllers, and services, while refactoring authentication by removing Passport and Sanctum.
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
<?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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user