'required|string|email', 'name' => 'required|string|max:255', 'description' => 'sometimes|nullable|string', ]; /** * Gets all eggs associated with this service. * * @return \Illuminate\Database\Eloquent\Relations\HasMany */ public function eggs() { return $this->hasMany(Egg::class); } /** * Returns all of the packs associated with a nest, regardless of the egg. * * @return \Illuminate\Database\Eloquent\Relations\HasManyThrough */ public function packs() { return $this->hasManyThrough(Pack::class, Egg::class, 'nest_id', 'egg_id'); } /** * Gets all servers associated with this nest. * * @return \Illuminate\Database\Eloquent\Relations\HasMany */ public function servers() { return $this->hasMany(Server::class); } }