api code global jain
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
<?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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user