ROOT-LEE
How to Hide Panel Icons Based on User Roles and Order Panels
I'm working on a Laravel Filament project with multiple panels, and I need to customize the visibility of these panels based on user roles. Specifically, I want to:
Hide panel icons if a user’s role doesn’t have access to that panel.
Maintain a specific order for the panel display.(admin, doctorants,.)
Here’s my current setup:
I'm using the bezhansalleh/filament-shield package for role management.
Each user can have access to multiple panels, and I store panel access information in a panel_accesses table, which associates roles with panel IDs.
Could anyone please provide guidance or examples on how to achieve this? Any help would be greatly appreciated!
11 replies
Redirecting to URL from selected option
I'm working on a custom page where users
can select a project from a dropdown list. When a project is selected, I need to redirect the user to a to the project selected;but for some reason it's not working.
Here is my code:
Thanks
3 replies
Storing repeater data in a pivot table
Hi ,ho to save data from repeater into pivot table?
Here's the Models and the table I have.
----
Tables:
expert :id, first_name,last_name,...
diplome :id name,...
diplome_experts : id,diplome_id,expert_id,year,...
Expert Model :
Expert (Livewire)
Error captured :
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'diplome_id' in 'field list' (Connection: mysql, SQL: insert into
**diplomes**
(diplome_id
, year
, specialite_id
, etablissement_id
, updated_at
, created_at
)
------------
The data going to be stored in the 'diplome' table and not in the 'diplome_ experts' pivot table?
Any help , Thanks11 replies
Research of null value in relation (belongs to many)
Hi✋
I have a list of users(personnes) who have a location.
personnel table : id ,id_corp,....
lieu_affectation_histories: id , personnel_id,lieu_affectation_id,...
lieu_affectaion : id , name_fr,name_ar,....
Model Personnel :
Personnel Ressource :
**What I'm looking for, is a search of all personnel who don't have a location.
Thanks.
5 replies