New panel not reading the resources

Is there there any wrong, I am doing. I created resource like
php artisan make:filament-resource Media --panel=creator
php artisan make:filament-resource Media --panel=creator
No description
7 Replies
Dennis Koch
Dennis Koch5mo ago
Can you share the file structure and the created resource?
eolykab
eolykabOP5mo ago
Here is the image
No description
Dennis Koch
Dennis Koch5mo ago
Looks good to me. Do you have a Policy that could hide the Resource? You are checking the panel under the /creator URL, right?
eolykab
eolykabOP5mo ago
Yes I am checking it under /creator am using filament shield on /admin
Dennis Koch
Dennis Koch5mo ago
So you have a policy for the Media model?
eolykab
eolykabOP5mo ago
Yes correct, how do I exclude this policy from /creator? Or do I go about it? Creator have limited things they can do on Media compared to Admins
Dennis Koch
Dennis Koch5mo ago
Ideally you should handle this via the Policy and the User/Permissions

Did you find this page helpful?