api code global jain
This commit is contained in:
75
app/Models/Sangh.php
Normal file
75
app/Models/Sangh.php
Normal file
@@ -0,0 +1,75 @@
|
||||
<?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',
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user