From 1872b037dae4de2bd518310e3e0f94a628a05980 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Wed, 23 Apr 2025 14:36:30 +0530 Subject: [PATCH] Added use HasSuperAdmin statement --- app/Models/User.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/app/Models/User.php b/app/Models/User.php index 20288a1..31ba41f 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -3,7 +3,9 @@ namespace App\Models; // use Illuminate\Contracts\Auth\MustVerifyEmail; +use Althinect\FilamentSpatieRolesPermissions\Concerns\HasSuperAdmin; use Illuminate\Database\Eloquent\Factories\HasFactory; +use Illuminate\Database\Eloquent\Relations\BelongsTo; use Illuminate\Database\Eloquent\SoftDeletes; use Illuminate\Foundation\Auth\User as Authenticatable; use Illuminate\Notifications\Notifiable; @@ -12,7 +14,7 @@ use Spatie\Permission\Traits\HasRoles; class User extends Authenticatable { /** @use HasFactory<\Database\Factories\UserFactory> */ - use HasFactory, HasRoles, Notifiable, SoftDeletes; // + use HasFactory, HasRoles, Notifiable, SoftDeletes, HasSuperAdmin; /** * The attributes that are mass assignable. @@ -47,4 +49,9 @@ class User extends Authenticatable 'password' => 'hashed', ]; } + + // public function team(): BelongsTo + // { + // return $this->belongsTo(Team::class); + // } }