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 doSolution:Jump to 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...
10 Replies
any idea : )
are you using policies?
Do you have multiple panels?
how should i know?
yes but i create it for my admin panel
what?
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
Because it's your project?! π
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. π«
there is a specific policy setting in filament resourcePolicies are a Laravel construct. So if you don't have policies that shouldn't be an issue
no i don't have policies. Leandro was right it was component cache.