
| Path : /home/gujo45me/public_html/demo2/app/Models/ |
| Disable Functions : exec,passthru,shell_exec,system System : Linux server-604606.appsiete.com 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64 [ Home ][ Zone-h ][ Jumping ][ Symlink ][ Mass Depes ][ Command ] |
| Current File : /home/gujo45me/public_html/demo2/app/Models/Usuario.php |
<?php
namespace App\Models;
use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable;
class Usuario extends Authenticatable
{
use Notifiable;
//protected $table = 'usuarios';
protected $guard = 'usuario';
protected $primaryKey = 'id_usuario';
protected $foreignKey = 'id_rol';
protected $fillable = [
'id_usuario', 'id_rol', 'id_local', 'username', 'password','nombres', 'apellidos', 'dni','fecha_nacimiento', 'domicilio','email', 'telefono', 'genero', 'url_avatar', 'estado',
];
protected $hidden = [
'password', 'remember_token',
];
public function rol()
{
return $this->belongsTo('App\Models\Rol', 'id_rol');
}
public function local()
{
return $this->belongsTo('App\Models\Local', 'id_local');
}
}