mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
image processor added
This commit is contained in:
@@ -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';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user