api code global jain
This commit is contained in:
68
app/Models/SantTemp.php
Normal file
68
app/Models/SantTemp.php
Normal file
@@ -0,0 +1,68 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use App\Traits\HasKarmaPoint;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use App\Models\Traits\SantTemp\Scopes\SantTempScope;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use App\Models\Traits\SantTemp\Methods\SantTempMethods;
|
||||
use App\Models\Traits\SantTemp\Attributes\SantTempAttributes;
|
||||
use App\Models\Traits\SantTemp\Relationships\SantTempRelationships;
|
||||
|
||||
class SantTemp extends Model
|
||||
{
|
||||
use HasFactory, SantTempRelationships, SantTempMethods, SantTempAttributes, SantTempScope ,HasKarmaPoint;
|
||||
|
||||
protected $table = 'sant_temp';
|
||||
/*
|
||||
* Pseudo-fields that get added to the models when the models are exported to json.
|
||||
*/
|
||||
protected $appends = ['age', 'diksha_year', 'is_user_following', 'is_owner', 'upcoming_vihar_count', 'current_chaturmas_count'];
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $fillable = [
|
||||
'sant_id',
|
||||
'user_id',
|
||||
'name',
|
||||
'father_name',
|
||||
'mother_name',
|
||||
'guru_name',
|
||||
'gender',
|
||||
'avatar',
|
||||
'honor',
|
||||
'qualification',
|
||||
'dharma_id',
|
||||
'sampraday_id',
|
||||
'guru_id',
|
||||
'birth_date',
|
||||
'diksha_date',
|
||||
'diksha_place',
|
||||
'diksha_place_latitude',
|
||||
'diksha_place_longitude',
|
||||
'about',
|
||||
'status',
|
||||
'verification_status',
|
||||
'description',
|
||||
'profile_statistics',
|
||||
'profile_verified_at',
|
||||
'created_by',
|
||||
'updated_by',
|
||||
'reviewed_fields'
|
||||
];
|
||||
|
||||
protected $guarded = [
|
||||
'id',
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
'honor' => 'array',
|
||||
'reviewed_fields' => 'json',
|
||||
'profile_statistics' => 'json'
|
||||
];
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user