'required|string|between:1,60|unique:locations,short_code', 'description' => 'string|nullable|between:1,191', ]; public function getRouteKeyName(): string { return $this->getKeyName(); } /** * Gets the nodes in a specified location. */ public function nodes(): HasMany { return $this->hasMany(Node::class); } /** * Gets the servers within a given location. */ public function servers(): HasManyThrough { return $this->hasManyThrough(Server::class, Node::class); } }