Query optimisations using with()
This commit is contained in:
@@ -7,10 +7,10 @@ use App\Traits\NextKey;
|
||||
class Domain extends \App\Models\Base\ServiceType
|
||||
{
|
||||
use NextKey;
|
||||
|
||||
const RECORD_ID = 'service__domain';
|
||||
|
||||
protected $table = 'ab_service__domain';
|
||||
protected $with = ['tld'];
|
||||
|
||||
public function tld()
|
||||
{
|
||||
|
@@ -7,7 +7,6 @@ use App\Traits\NextKey;
|
||||
class Host extends \App\Models\Base\ServiceType
|
||||
{
|
||||
use NextKey;
|
||||
|
||||
const RECORD_ID = 'service__hosting';
|
||||
|
||||
protected $table = 'ab_service__hosting';
|
||||
|
@@ -7,7 +7,6 @@ use App\Traits\NextKey;
|
||||
class SSL extends \App\Models\Base\ServiceType
|
||||
{
|
||||
use NextKey;
|
||||
|
||||
const RECORD_ID = 'service__ssl';
|
||||
|
||||
protected $table = 'ab_service__ssl';
|
||||
|
Reference in New Issue
Block a user