Admin panel resources

Can resources created in admin panel be accessed without the admin route, forexample i created districts and to access districts i can go to myapp.test/districts instead of myapp.test/admin/districts. or how can cruds/resources be shared by both admin and no admins?
9 Replies
Dennis Koch
Dennis Koch2y ago
You always need an authenticated user for Filament.
Vp
Vp2y ago
If you want FORM and TABLE builder outside admin panel, then you can install and use it, but you need separate URL (note: I thought you want the form and table outside admin)
kenromdavids
kenromdavidsOP2y ago
i wanted to use the resource function to generate forms and table using the model like this php artisan make:filament-resource District but i was wondering if it can work without installing the admin panel and I was wondering if that resource can appear outside admin..
Dan Harrin
Dan Harrin2y ago
no
kenromdavids
kenromdavidsOP2y ago
okay, i guess i will use spartie permission to hide some tables/resources created. can i use spartie to hide the delete button only? I'm moving the whole application that has been running for years into filament, so i cant create tables and forms one by one, the generate resource functionality will help a lot and the wizard
Dennis Koch
Dennis Koch2y ago
Yes. Use a Policy or ->visible() on the button itself
kenromdavids
kenromdavidsOP2y ago
Thank you so much everyone .. thank you @Dan Harrin for this amazing app. lastly, let say i have superadmins, and admins, can i have myapp.test/superadmin and myapp.test/admin to have different views and tables? but all created by filament?
Dennis Koch
Dennis Koch2y ago
You might wanna explore #multi-context
kenromdavids
kenromdavidsOP2y ago
let me look into it. thanks
Want results from more Discord servers?
Add your server