Files
Global-Jain/app/Models/Sangh.php
2025-11-05 10:37:10 +05:30

76 lines
1.8 KiB
PHP

<?php
namespace App\Models;
use App\Traits\HasKarmaPoint;
use Illuminate\Database\Eloquent\Model;
use App\Models\Traits\Sangh\Scopes\SanghScope;
use App\Models\Traits\Sangh\Methods\SanghMethods;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use App\Models\Traits\Sangh\Attributes\SanghAttributes;
use App\Models\Traits\Sangh\Relationships\SanghRelationships;
class Sangh extends Model
{
use HasFactory, SanghAttributes, SanghRelationships, SanghScope, SanghMethods, HasKarmaPoint;
protected $appends = ['is_user_following', 'is_member', 'is_requested', 'sangh_member_status'];
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'user_id',
'name',
'sangh_type',
'dharma_id',
'sampraday_id',
'reg_number',
'reg_date',
'address',
'city',
'pincode',
'longitude',
'latitude',
'about',
'avatar',
'created_by',
'updated_by',
'mulnayak_bhagwan_name',
'email',
'state',
'apartment_name',
'mobile_number',
'sangh_website',
'number_of_members',
'swapna_chadawa_organised_status',
'type_of_template',
'aaradhana_bhavan_status',
'pathshala_status',
'guruji_name',
'no_of_students',
'library_status',
'library_name',
'librarian_name',
'librarian_mobile_number',
'number_of_books',
'aayambilshala_status',
'bhojanshala_status',
'tifin_service_status',
'mahila_mandal_status',
'yuva_mandal_status',
'bank_account_number',
'bank_ifsc',
'bank_branch',
'bank_upi_id',
'bank_qr_code',
'sangh_status'
];
protected $guarded = [
'id',
];
}