-
app/Models/Server.php
Open in GitHubclass 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 GitHubclass Location extends Model { // public function servers() { return $this->hasManyThrough(Server::class, Node::class); } }