29 lines
490 B
PHP
29 lines
490 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use App\Models\Customers;
|
|
|
|
class Salarie extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
/**
|
|
* The attributes that are mass assignable.
|
|
*
|
|
* @var array
|
|
*/
|
|
protected $fillable = [
|
|
'matricule',
|
|
'nom',
|
|
'prenom',
|
|
'code'
|
|
];
|
|
|
|
|
|
public function customer() {
|
|
return $this->belongsTo(Customers::class);
|
|
}
|
|
}
|