F
Filament2d ago
o.m

Added new Resource but it is not showing on the left navigation?

I have created a new Resource for example setting but it doesn't even show on the left side navigation? The only way I can show a new menu to the left side navigation is by doing a command php artisan make:filament-page Setting What's the reason why the Resource is not showing on the menu navigation?
No description
16 Replies
o.m
o.mOP2d ago
No description
Dan Harrin
Dan Harrin2d ago
do you have a policy for this model
Illizian
Illizian2d ago
Your UserResource isn't showing either. Can you share your Provider
o.m
o.mOP2d ago
@Dan Harrin when I created the SettingResource it doesnt have a policy.
Dan Harrin
Dan Harrin2d ago
share the AdminPanelProvider
o.m
o.mOP2d ago
@Illizian
No description
Dan Harrin
Dan Harrin2d ago
TODO
o.m
o.mOP2d ago
I think the project is setup differently ?
Dan Harrin
Dan Harrin2d ago
THIS NEEDS TO BE REENABLED ONCE WE START THE MIGRATION TO FILAMENT lol
Illizian
Illizian2d ago
You've disabled the resources LOL
o.m
o.mOP2d ago
Where is it ?
Illizian
Illizian2d ago
No description
o.m
o.mOP2d ago
oh this one ?//->discoverResources(in: app_path('Filament/Resources'), for: 'App\Filament\Resources')
Dennis Koch
Dennis Koch2d ago
Check your screenshot. There's a big "TODO" there 😅
o.m
o.mOP2d ago
Ahh apologies. I am very new to this Framework sorry Creating a new resource does not include the policy right? include(/Users/oliver/Herd/certle/vendor/composer/../../app/Policies/SettingPolicy.php): Failed to open stream: No such file or directory

Did you find this page helpful?