Singularize model names.
This commit is contained in:
parent
7c916ad38f
commit
8ba479e51f
25 changed files with 73 additions and 73 deletions
|
@ -253,7 +253,7 @@ class Server extends Model
|
|||
*/
|
||||
public function option()
|
||||
{
|
||||
return $this->belongsTo(ServiceOptions::class);
|
||||
return $this->belongsTo(ServiceOption::class);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -59,6 +59,6 @@ class ServerVariables extends Model
|
|||
*/
|
||||
public function variable()
|
||||
{
|
||||
return $this->belongsTo(ServiceVariables::class, 'variable_id');
|
||||
return $this->belongsTo(ServiceVariable::class, 'variable_id');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -49,7 +49,7 @@ class Service extends Model
|
|||
*/
|
||||
public function options()
|
||||
{
|
||||
return $this->hasMany(ServiceOptions::class);
|
||||
return $this->hasMany(ServiceOption::class);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -60,7 +60,7 @@ class Service extends Model
|
|||
public function packs()
|
||||
{
|
||||
return $this->hasManyThrough(
|
||||
'Pterodactyl\Models\ServicePack', 'Pterodactyl\Models\ServiceOptions',
|
||||
'Pterodactyl\Models\ServicePack', 'Pterodactyl\Models\ServiceOption',
|
||||
'service_id', 'option_id'
|
||||
);
|
||||
}
|
||||
|
|
|
@ -26,7 +26,7 @@ namespace Pterodactyl\Models;
|
|||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class ServiceOptions extends Model
|
||||
class ServiceOption extends Model
|
||||
{
|
||||
/**
|
||||
* The table associated with the model.
|
||||
|
@ -100,7 +100,7 @@ class ServiceOptions extends Model
|
|||
*/
|
||||
public function variables()
|
||||
{
|
||||
return $this->hasMany(ServiceVariables::class, 'option_id');
|
||||
return $this->hasMany(ServiceVariable::class, 'option_id');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -64,6 +64,6 @@ class ServicePack extends Model
|
|||
*/
|
||||
public function option()
|
||||
{
|
||||
return $this->belongsTo(ServiceOptions::class);
|
||||
return $this->belongsTo(ServiceOption::class);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -26,7 +26,7 @@ namespace Pterodactyl\Models;
|
|||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class ServiceVariables extends Model
|
||||
class ServiceVariable extends Model
|
||||
{
|
||||
/**
|
||||
* The table associated with the model.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue