*/ use HasFactory; public const string RESOURCE_NAME = 'location'; public function getRouteKeyName(): string { return $this->getKeyName(); } /** * @return HasMany */ public function nodes(): HasMany { return $this->hasMany(Node::class); } /** * @return HasManyThrough */ public function servers(): HasManyThrough { return $this->hasManyThrough(Server::class, Node::class); } }