fix photo module

This commit is contained in:
apuc committed 2024-11-29 14:07:55 +03:00
1 parent 3ef1e7d7e0
commit 0ed97877fd
3 files changed
+46 -1

No files matched your search

@@ -31,4 +31,10 @@ class PhotoService
return false;
}
public static function getByEntity(string $entity, int $entity_id): string
{
$photo = Photo::where("entity", $entity)->where("entity_id", $entity_id)->first();
return $photo->image ?? "";
}
}