Less obtuse mounting code

This commit is contained in:
Dane Everitt 2020-08-25 19:01:08 -07:00
parent 96fef94578
commit 9d95c5ab32
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
4 changed files with 89 additions and 23 deletions

39
app/Models/MountNode.php Normal file
View file

@ -0,0 +1,39 @@
<?php
use Pterodactyl\Models\Node;
use Pterodactyl\Models\Mount;
use Illuminate\Database\Eloquent\Model;
class MountNode extends Model
{
/**
* @var bool
*/
public $timestamps = false;
/**
* @var bool
*/
public $incrementing = false;
/**
* @var string
*/
protected $table = 'mount_node';
/**
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
*/
public function node()
{
return $this->belongsTo(Node::class);
}
/**
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
*/
public function mount()
{
return $this->belongsTo(Mount::class);
}
}