Carga inicial
This commit is contained in:
37
app/Models/User.php
Normal file
37
app/Models/User.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<?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');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user