1: | <?php |
2: | |
3: | namespace Aurora\Modules\StandardAuth\Models; |
4: | |
5: | use Aurora\System\Classes\Model; |
6: | |
7: | class Account extends Model |
8: | { |
9: | protected $table = 'standard_auth_accounts'; |
10: | protected $moduleName = 'StandardAuth'; |
11: | |
12: | |
13: | |
14: | |
15: | |
16: | |
17: | protected $fillable = [ |
18: | 'Id', |
19: | 'IsDisabled', |
20: | 'IdUser', |
21: | 'Login', |
22: | 'Password', |
23: | 'LastModified', |
24: | 'Properties' |
25: | ]; |
26: | |
27: | |
28: | |
29: | |
30: | |
31: | |
32: | protected $hidden = [ |
33: | ]; |
34: | |
35: | protected $casts = [ |
36: | 'Properties' => 'array', |
37: | 'Password' => \Aurora\System\Casts\Encrypt::class |
38: | ]; |
39: | |
40: | protected $attributes = [ |
41: | ]; |
42: | |
43: | public function getLogin() |
44: | { |
45: | return $this->Login; |
46: | } |
47: | |
48: | public function getPassword() |
49: | { |
50: | return $this->Password; |
51: | } |
52: | |
53: | public function setPassword($sPassword) |
54: | { |
55: | $this->Password = $sPassword; |
56: | } |
57: | } |
58: | |