You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
546 B

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Empleados extends Model
{
protected $connection = 'mysql';
protected $table = 'empleados';
protected $primaryKey = 'id';
public $timestamps = false;
protected $fillable = [
'clave_contpaq',
'nombre_completo',
'fk_id_users',
];
public function archivosNominas(){
return $this->hasMany(ArchivosNominas::class,'clave_contpaq','clave_contpaq');
}
}