image processor added

This commit is contained in:
HolgerHatGarKeineNode
2023-02-15 11:46:03 +01:00
parent 51055d630a
commit a2f903b19a

View File

@@ -95,9 +95,9 @@ class Meetup extends Model implements HasMedia
protected function logoSquare(): Attribute
{
$getPath = $this->getFirstMediaPath('logo');
if ($getPath !== '') {
$path = $this->getFirstMediaPath('logo');
$media = $this->getFirstMedia('logo');
if ($media) {
$path = str($media->getPath())->after('public/');
} else {
$path = 'fallback/einundzwanzig.png';
}