22 lines
591 B
PHP
22 lines
591 B
PHP
<?php
|
|
|
|
namespace App\Models\Traits\SanghMember\Attributes;
|
|
|
|
use App\Constant\Constant;
|
|
use App\Traits\ActionButtons;
|
|
|
|
trait SanghMemberAttributes
|
|
{
|
|
use ActionButtons;
|
|
|
|
public function getProfileImageAttribute($value): string
|
|
{
|
|
if (!empty($value)) {
|
|
// $imagePath = Constant::SANGH_MEMBER_IMAGE_UPLOAD_PATH . '/' . $value;
|
|
// return getImage($value, Constant::SANGH_MEMBER_IMAGE_UPLOAD_PATH, 'medium');
|
|
return asset('storage/app/public/images/sangh-member/' . $value);
|
|
}
|
|
return ''; // Need to set default image
|
|
}
|
|
}
|