Use class string instead of magic string
This commit is contained in:
parent
bc0d0fd6fa
commit
02cabf73a0
|
@ -90,8 +90,8 @@ class Service extends Model implements CleansAttributes, ValidableContract
|
||||||
public function packs()
|
public function packs()
|
||||||
{
|
{
|
||||||
return $this->hasManyThrough(
|
return $this->hasManyThrough(
|
||||||
'Pterodactyl\Models\Pack',
|
Pack::class,
|
||||||
'Pterodactyl\Models\ServiceOption',
|
ServiceOption::class,
|
||||||
'service_id',
|
'service_id',
|
||||||
'option_id'
|
'option_id'
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue