diff --git a/api/app/Models/User.php b/api/app/Models/User.php index 3c90186..601fc80 100644 --- a/api/app/Models/User.php +++ b/api/app/Models/User.php @@ -3,11 +3,13 @@ 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; -class User extends Authenticatable +class User extends Authenticatable implements FilamentUser { use HasFactory, Notifiable; @@ -44,4 +46,9 @@ protected function casts(): array 'password' => 'hashed', ]; } + + public function canAccessPanel(Panel $panel): bool + { + return true; + } } \ No newline at end of file diff --git a/api/env.example b/api/env.example index 4f8e04c..377e5a4 100644 --- a/api/env.example +++ b/api/env.example @@ -1,4 +1,4 @@ -APP_NAME=Laravel +APP_NAME=Pfaditechnik APP_ENV=production APP_KEY= APP_DEBUG=false