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