'required|string|between:1,60|unique:locations,short', 'long' => 'string|nullable|between:1,191', ]; /** * {@inheritDoc} */ 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); } }