pulse setting

This commit is contained in:
NoBody313
2025-04-20 11:26:30 +07:00
parent ed14fc0a98
commit 1b59bd6512
4 changed files with 24 additions and 6 deletions
+6 -1
View File
@@ -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';
}
}