More singularization and correct file names.

This commit is contained in:
Dane Everitt 2017-02-12 16:03:17 -05:00
parent 8ba479e51f
commit 19d352619e
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
11 changed files with 17 additions and 17 deletions

View file

@ -263,7 +263,7 @@ class Server extends Model
*/
public function variables()
{
return $this->hasMany(ServerVariables::class);
return $this->hasMany(ServerVariable::class);
}
/**

View file

@ -26,7 +26,7 @@ namespace Pterodactyl\Models;
use Illuminate\Database\Eloquent\Model;
class ServerVariables extends Model
class ServerVariable extends Model
{
/**
* The table associated with the model.

View file

@ -54,8 +54,8 @@ class ServiceVariable extends Model
'required' => 'integer',
];
public function serverVariables()
public function ServerVariable()
{
return $this->hasMany(ServerVariables::class, 'variable_id');
return $this->hasMany(ServerVariable::class, 'variable_id');
}
}