resource not displaying on sidebar

hello. i create a resource with this cmd: php artisan make:filament-resource Customer --generate but it is not displaying on sidebar. i added this function in my resource file
public static function canViewAny(): bool { return true; }
but still not working. what should i do
Solution:
Please provide more info about your project, if you did some customizations If you are using cache, you need to clear it https://filamentphp.com/docs/3.x/panels/installation#caching-filament-components...
Jump to solution
10 Replies
matin rajabi
matin rajabiOP5mo ago
any idea : )
LeandroFerreira
LeandroFerreira5mo ago
are you using policies?
rajul
rajul5mo ago
Do you have multiple panels?
matin rajabi
matin rajabiOP5mo ago
how should i know? yes but i create it for my admin panel
LeandroFerreira
LeandroFerreira5mo ago
what?
Solution
LeandroFerreira
LeandroFerreira5mo ago
Please provide more info about your project, if you did some customizations If you are using cache, you need to clear it https://filamentphp.com/docs/3.x/panels/installation#caching-filament-components
Dennis Koch
Dennis Koch5mo ago
Because it's your project?! 😅
matin rajabi
matin rajabiOP5mo ago
you're right let me explain. the project is developed by another person and recently i become in charge for this project and the other person is gone. i assumed maybe there is a specific policy setting in filament resource which i don't know. 🫠
Dennis Koch
Dennis Koch5mo ago
there is a specific policy setting in filament resource
Policies are a Laravel construct. So if you don't have policies that shouldn't be an issue
matin rajabi
matin rajabiOP5mo ago
no i don't have policies. Leandro was right it was component cache.

Did you find this page helpful?