*/ use HasFactory; /** * The resource name for this model when it is transformed into an * API representation using fractal. */ public const RESOURCE_NAME = 'nest'; /** * The table associated with the model. */ protected $table = 'nests'; /** * Fields that are mass assignable. */ protected $fillable = [ 'name', 'description', ]; public static array $validationRules = [ 'author' => 'required|string|email', 'name' => 'required|string|max:191', 'description' => 'nullable|string', ]; /** * Gets all eggs associated with this service. * * @return \Illuminate\Database\Eloquent\Relations\HasMany<\Pterodactyl\Models\Egg, $this> */ public function eggs(): HasMany { return $this->hasMany(Egg::class); } /** * Gets all servers associated with this nest. * * @return \Illuminate\Database\Eloquent\Relations\HasMany<\Pterodactyl\Models\Server, $this> */ public function servers(): HasMany { return $this->hasMany(Server::class); } }