F
Filamentβ€’3mo ago
matin rajabi

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 rajabiβ€’3mo ago
any idea : )
LeandroFerreira
LeandroFerreiraβ€’3mo ago
are you using policies?
rajul
rajulβ€’3mo ago
Do you have multiple panels?
matin rajabi
matin rajabiβ€’3mo ago
how should i know? yes but i create it for my admin panel
LeandroFerreira
LeandroFerreiraβ€’3mo ago
what?
Solution
LeandroFerreira
LeandroFerreiraβ€’3mo 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 Kochβ€’3mo ago
Because it's your project?! πŸ˜…
matin rajabi
matin rajabiβ€’3mo 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 Kochβ€’3mo 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 rajabiβ€’3mo ago
no i don't have policies. Leandro was right it was component cache.
Want results from more Discord servers?
Add your server