pulse setting
This commit is contained in:
@@ -5,7 +5,6 @@ namespace App\Models;
|
||||
use Illuminate\Database\Eloquent\Concerns\HasUuids;
|
||||
use Illuminate\Foundation\Auth\User as Authenticatable;
|
||||
use Illuminate\Notifications\Notifiable;
|
||||
use Illuminate\Support\Str;
|
||||
|
||||
class Admin extends Authenticatable
|
||||
{
|
||||
@@ -15,6 +14,7 @@ class Admin extends Authenticatable
|
||||
'name',
|
||||
'email',
|
||||
'password',
|
||||
'role'
|
||||
];
|
||||
|
||||
protected $hidden = [
|
||||
@@ -26,4 +26,9 @@ class Admin extends Authenticatable
|
||||
'email_verified_at' => 'datetime',
|
||||
'password' => 'hashed',
|
||||
];
|
||||
|
||||
public function isAdmin(): bool
|
||||
{
|
||||
return $this->role === 'admin';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user