Mehdi
Mehdi
FFilament
Created by kevin on 10/5/2024 in #❓┊help
stancl/tenancy Path Identification error: Missing required parameter
up
8 replies
FFilament
Created by Myster on 9/11/2024 in #❓┊help
Allow only users with specific roles to access the login.
Try this: namespace App\Models; use Filament\Models\Contracts\FilamentUser; use Filament\Panel; use BezhanSalleh\FilamentShield\Support\Utils; use Illuminate\Foundation\Auth\User as Authenticatable; class User extends Authenticatable implements FilamentUser { //..
public function canAccessPanel(Panel $panel): bool { if($panel->getId() === 'admin') { return $this->hasRole(Utils::getSuperAdminName()); } elseif($panel->getId() === 'app') { return $this->hasRole(Utils::getSuperAdminName()) || $this->hasRole(config('filament-shield.user.name', 'user')); } return false; } }
5 replies
FFilament
Created by Mehdi on 5/13/2024 in #❓┊help
How are the settings applied and shown on the panel (Site Name, Email, etc.)?
It could have been better than it was. But that's okay; thanks for the comment.
5 replies