Singularize model names.

This commit is contained in:
Dane Everitt
2017-02-12 16:02:23 -05:00
parent 7c916ad38f
commit 8ba479e51f
25 changed files with 73 additions and 73 deletions
+1 -1
View File
@@ -253,7 +253,7 @@ class Server extends Model
*/
public function option()
{
return $this->belongsTo(ServiceOptions::class);
return $this->belongsTo(ServiceOption::class);
}
/**
+1 -1
View File
@@ -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');
}
}
+2 -2
View File
@@ -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'
);
}
+2 -2
View File
@@ -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');
}
/**
+1 -1
View File
@@ -64,6 +64,6 @@ class ServicePack extends Model
*/
public function option()
{
return $this->belongsTo(ServiceOptions::class);
return $this->belongsTo(ServiceOption::class);
}
}
+1 -1
View File
@@ -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.