Skip to main content

pterodactyl/panel

8390 stars
2 code files
View pterodactyl/panel on GitHub

app/Models/Server.php

Open in GitHub
class Server extends Model
{
//
public function mounts()
{
return $this->hasManyThrough(Mount::class, MountServer::class, 'server_id', 'id', 'id', 'mount_id');
}
}

app/Models/Location.php

Open in GitHub
class Location extends Model
{
//
public function servers()
{
return $this->hasManyThrough(Server::class, Node::class);
}
}

We'd Love Your Feedback

Tell us what you like or what we can improve

Feel free to share anything you like or dislike about this page or the platform in general.