<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class Employee extends Model {protected $guarded=[];protected function casts():array{return ['joining_date'=>'date','probation_end_date'=>'date'];}public function user(){return $this->belongsTo(User::class);}public function department(){return $this->belongsTo(Department::class);}public function office(){return $this->belongsTo(Office::class);}public function shift(){return $this->belongsTo(Shift::class);}public function salaryRevisions(){return $this->hasMany(SalaryRevision::class);}public function kpis(){return $this->hasMany(EmployeeKpi::class);}public function performanceReviews(){return $this->hasMany(PerformanceReview::class);}}