applications()->count() == 0 && $this->postgresqls()->count() == 0; } public function applications() { return $this->hasMany(Application::class); } public function postgresqls() { return $this->hasMany(StandalonePostgresql::class); } public function databases() { return $this->postgresqls(); } public function project() { return $this->belongsTo(Project::class); } public function services() { return $this->hasMany(Service::class); } protected function name(): Attribute { return Attribute::make( set: fn(string $value) => strtolower($value), ); } }