<?php

namespace App\Models;

use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;

class User extends Authenticatable
{
    use Notifiable;
    protected $connection = 'mysql';
    protected $table = 'usuario';
    public $timestamps = false;
    protected $primaryKey = 'idusuario';

    /** The attributes that are mass assignable.
     * @var array
     **/
    protected $fillable = [
        'idusuario',
        'nick',
        'contrasena',
        'intento_fallido',
        'idempresa'
    ];

    /**
     * The attributes that should be hidden for arrays.
     * @var array
     **/
    protected $hidden = [
        'contrasenha'
        // 'remember_token',
    ];
}
