Why not add role shiled for dashborad page

No description
19 Replies
Vp
Vp3mo ago
Because of config file.
Alnuaimi
Alnuaimi3mo ago
whats is the errror
No description
Vp
Vp3mo ago
Scroll down and check exclude
No description
Alnuaimi
Alnuaimi3mo ago
the same you
No description
Vp
Vp3mo ago
Because that exclude.pages.Dashboard answer your question "Why not add role shiled for dashborad page". Based on the config file, you're excluded "Dashboard" inside 'pages' for permissions/roles
Alnuaimi
Alnuaimi3mo ago
Forget it,Now I thises widgets when unselect the role not work why?
No description
Alnuaimi
Alnuaimi3mo ago
No description
Vp
Vp3mo ago
It's difficult to answer by just looking some photos
Alnuaimi
Alnuaimi3mo ago
my widgets The permissions do not apply to it. When I select or deselect, nothing happens
Vp
Vp3mo ago
Did you put HasWidgetShield traits?
Alnuaimi
Alnuaimi3mo ago
No
Alnuaimi
Alnuaimi3mo ago
No description
Alnuaimi
Alnuaimi3mo ago
Why not hide class StatsOverviewWidget ?
No description
Vp
Vp3mo ago
Add what you want to hide inside "widgets" in this config
Alnuaimi
Alnuaimi3mo ago
How?
Vp
Vp3mo ago
The easiest way to be by "typing..." anyhow try like below
'widgets' => [
'AccountWidget',
'FilamentInfoWidget',
'StatsOverviewWidget', // this should be same as the class name
],
'widgets' => [
'AccountWidget',
'FilamentInfoWidget',
'StatsOverviewWidget', // this should be same as the class name
],
Alnuaimi
Alnuaimi3mo ago
No, no, brother, I mean I want the permissions to apply to it StatsOverviewWidget and I do not hide that
Vp
Vp3mo ago
No idea bro, suggested you to ask in #bezhansalleh-shield
Want results from more Discord servers?
Add your server
More Posts