Files
Sio-Back/app/Models/User.php
2025-12-26 17:21:11 -08:00

38 lines
860 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Tymon\JWTAuth\Contracts\JWTSubject;
class User extends Authenticatable
{
use SoftDeletes;
use Notifiable;
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'nombre', 'email', 'password','apellido_materno','apellido_paterno','telefono', 'tipo_empleado_id', 'sucursal_id', 'token_firebase'
];
/**
* The attributes that should be hidden for arrays.
*
* @var array
*/
protected $hidden = [
'password', 'remember_token',
];
public function desplazamientos()
{
return $this->hasMany('App\Models\UsuarioDesplazamiento', 'usuario_id');
}
}