api code global jain

This commit is contained in:
Abhishek Mali
2025-11-05 10:37:10 +05:30
commit 52fe7e2bec
2834 changed files with 1784903 additions and 0 deletions

View File

@@ -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
}
}