More singularization and correct file names.
This commit is contained in:
parent
8ba479e51f
commit
19d352619e
11 changed files with 17 additions and 17 deletions
|
@ -263,7 +263,7 @@ class Server extends Model
|
|||
*/
|
||||
public function variables()
|
||||
{
|
||||
return $this->hasMany(ServerVariables::class);
|
||||
return $this->hasMany(ServerVariable::class);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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.
|
|
@ -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');
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue