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 protected function logoSquare(): Attribute
{ {
$getPath = $this->getFirstMediaPath('logo'); $media = $this->getFirstMedia('logo');
if ($getPath !== '') { if ($media) {
$path = $this->getFirstMediaPath('logo'); $path = str($media->getPath())->after('public/');
} else { } else {
$path = 'fallback/einundzwanzig.png'; $path = 'fallback/einundzwanzig.png';
} }