*/ protected $fillable = [ 'name', 'email', 'apellido', 'tipos_id', 'puesto_id', 'departamento_id', 'telefono', 'password', ]; /** * The attributes that should be hidden for serialization. * * @var array */ protected $hidden = [ 'password', 'remember_token', ]; /** * The attributes that should be cast. * * @var array */ protected $casts = [ 'email_verified_at' => 'datetime', ]; public function puesto() { return $this->belongsTo(\App\Models\Puesto::class, 'puesto_id'); } public function tipo() { return $this->belongsTo(\App\Models\Tipo::class, 'tipos_id'); } public function departamento() { return $this->belongsTo(\App\Models\Despartamento::class, 'departamento_id'); } }