Yor
Yor
FFilament
Created by Yor on 2/20/2025 in #❓┊help
Navigation for multi role panel
thankyou, the navigation can be hidden now
10 replies
FFilament
Created by Yor on 2/20/2025 in #❓┊help
Navigation for multi role panel
you mean this one? <?php namespace App\Policies; use App\Models\Brand; use App\Models\User; class BrandPolicy { /** * Create a new policy instance. */ public function __construct() { // } public function manageOwn(User $user, Brand $brand) { return $user->hasRole('super-admin') || $user->id === $brand->user_id; // Superadmin or owner can manage } }
10 replies
FFilament
Created by Yor on 2/20/2025 in #❓┊help
Navigation for multi role panel
I already tried like that that way but its resulting the navigation items still can be show by admin though
10 replies