diff --git a/app/Models/User.php b/app/Models/User.php index 948b39a..bfcb35f 100755 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -3,13 +3,15 @@ namespace App\Models; // use Illuminate\Contracts\Auth\MustVerifyEmail; +use Filament\Models\Contracts\FilamentUser; +use Filament\Panel; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Foundation\Auth\User as Authenticatable; use Illuminate\Notifications\Notifiable; //use Laravel\Sanctum\HasApiTokens; /** - * + * * * @property int $id * @property string $name @@ -35,7 +37,7 @@ * @method static \Illuminate\Database\Eloquent\Builder|User whereUpdatedAt($value) * @mixin \Eloquent */ -class User extends Authenticatable +class User extends Authenticatable implements FilamentUser { use HasFactory, Notifiable/*, HasApiTokens*/; @@ -72,4 +74,9 @@ protected function casts(): array 'password' => 'hashed', ]; } + + public function canAccessPanel( Panel $panel): bool + { + return true; + } }