fix photo module
This commit is contained in:
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 ?? "";
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user