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
|
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';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user