Eigene Fotokategorie fuer Grundrisse und Plaene, nie in Galerien

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
LarsandClaude Opus 5.5 committed 2026-10-29 18:43:02 +01:00
1 parent 8bcda9a4bc
commit d02f3e05c7
7 files changed
+85 -4

No files matched your search

+12
View File
@@ -81,6 +81,18 @@ protected function published(Builder $query): Builder
return $query->where('is_published', true)->orderBy('sort_order');
}
/**
* Photos a gallery or an automatic choice may show – floor plans and drawings only appear where chosen.
*
* @param Builder<Photo> $query
* @return Builder<Photo>
*/
#[Scope]
protected function forGalleries(Builder $query): Builder
{
return $query->whereIn('category', PhotoCategory::forGalleries());
}
/**
* Photos of the apartment and those without an apartment (e.g. the area); without an apartment all photos.
*