employee module

This commit is contained in:
2024-04-11 16:37:12 +05:45
parent b5c603ceec
commit 91e7943546
9 changed files with 417 additions and 14 deletions

View File

@ -10,6 +10,12 @@ class Employee extends Model
protected $table = 'tbl_employees';
protected $primaryKey = 'id';
protected $guarded = [];
protected $appends = (['full_name']);
protected function getFullNameAttribute()
{
return $this->first_name . ' ' . $this->middle_name . ' ' . $this->last_name;
}
public function user()
{