display last login to User Admin
This commit is contained in:
1 parent
24d27a68ac
commit
cb241796cc
3 files changed
+7
-1
No files matched your search
@@ -43,6 +43,8 @@ class User extends Authenticatable
|
||||
'email_verified_at' => 'datetime',
|
||||
];
|
||||
|
||||
protected $dates = ['login_at'];
|
||||
|
||||
public function isAdmin(): bool
|
||||
{
|
||||
return $this->role === 2;
|
||||
|
||||
Reference in new issue
Block a user