-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUser.php
34 lines (29 loc) · 902 Bytes
/
User.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
namespace App;
use Illuminate\Notifications\Notifiable;
use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Foundation\Auth\User as Authenticatable;
class User extends Authenticatable
{
use Notifiable;
protected $table = 'WARELINE.tblusu';
protected $primaryKey = 'usucod';
public function username()
{
return 'usunome';
}
public function getAuthPassword(){
return $this->ususenha;
}
public function setAttribute($key, $value)
{
$isRememberTokenAttribute = $key == $this->getRememberTokenName();
if (!$isRememberTokenAttribute)
{
parent::setAttribute($key, $value);
}
}
protected $fillable = [
'usunome', 'ususenha', 'status', 'acessos', 'origem', 'NOME', 'codger', 'nome', 'senhamaster', 'origem2', 'coduni', 'provisoria', 'codvend', 'situacao', 'modulo'
];
}