![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/job-board.corals.io/Corals/modules/Jobs/Models/ |
<?php namespace Corals\Modules\Jobs\Models; use Corals\Foundation\Models\BaseModel; use Corals\Foundation\Transformers\PresentableTrait; use Corals\Modules\Utility\Models\Address\Location; use Corals\Modules\Utility\Models\ListOfValue\ListOfValue; use Corals\Modules\Utility\Traits\Rating\ReviewRateable as ReviewRateableTrait; use Corals\User\Models\User; use Spatie\Activitylog\Traits\LogsActivity; class Candidate extends BaseModel { use PresentableTrait, LogsActivity, ReviewRateableTrait; /** * Model configuration. * @var string */ public $config = 'jobs.models.candidate'; protected static $logAttributes = []; protected $table = 'jo_candidates'; protected $casts = [ 'properties' => 'json', ]; protected $guarded = ['id']; public function user() { return $this->belongsTo(User::class); } public function location() { return $this->belongsTo(Location::class); } public function work() { return $this->hasMany(Work::class); } public function education() { return $this->hasMany(Education::class); } public function candidateProfession() { return $this->belongsTo(ListOfValue::class, 'profession', 'code'); } }