This commit is contained in:
2025-06-03 12:40:13 +05:45
parent 50c804d445
commit f9a589c05f
201 changed files with 34026 additions and 2 deletions

25
app/Models/Employee.php Normal file
View File

@ -0,0 +1,25 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Employee extends Model
{
use HasFactory;
// Add these fields to allow mass assignment
protected $fillable = [
'first_name',
'last_name',
'company_id',
'email',
'phone',
];
public function company()
{
return $this->belongsTo(Company::class);
}
}