fix photo module
This commit is contained in:
@ -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