/home/techb158/ileadtechnology.com/SSM/app/Models/configuration/reception
NameSizeModeActions
CallingPurpose.php12980644editdlrm
ComplaintType.php12990644editdlrm
EnquirySource.php12960644editdlrm
EnquiryType.php12900644editdlrm
VisitingPurpose.php13070644editdlrm
Edit: /home/techb158/ileadtechnology.com/SSM/app/Models/configuration/reception/VisitingPurpose.php (1307B)
'array']; protected $primaryKey = 'id'; protected $table = 'visiting_purposes'; protected static $logName = 'visiting_purpose'; protected static $logFillable = true; protected static $logOnlyDirty = true; protected static $ignoreChangedAttributes = ['updated_at']; public function visitorLogs() { return $this->hasMany('App\Models\Reception\VisitorLog'); } 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 scopeFilterByName($q, $name, $s = 0) { if (! $name) { return $q; } return $s ? $q->where('name', '=', $name) : $q->where('name', 'like', '%'.$name.'%'); } }