/home/techb158/ileadtechnology.com/SSM/app/Models/reception
Edit: /home/techb158/ileadtechnology.com/SSM/app/Models/reception/EnquiryDetail.php (1732B)
'array', 'date_of_birth' => 'date'];
protected $primaryKey = 'id';
protected $table = 'enquiry_details';
protected static $logName = 'enquiry_detail';
protected static $logFillable = true;
protected static $logOnlyDirty = true;
protected static $ignoreChangedAttributes = ['updated_at'];
public function enquiry()
{
return $this->belongsTo('App\Models\Reception\Enquiry');
}
public function course()
{
return $this->belongsTo('App\Models\Academic\Course');
}
public function institute()
{
return $this->belongsTo('App\Models\Configuration\Academic\Institute');
}
public function getOption(string $option)
{
return array_get($this->options, $option);
}
public function scopeFilterById($q, $id)
{
if (! $id) {
return $q;
}
return $q->where('id', '=', $id);
}
public function scopeFilterByUuid($q, $uuid)
{
if (! $uuid) {
return $q;
}
return $q->where('uuid', '=', $uuid);
}
}