KiaBoluki
is it possible to make a filament resource based on scope ?
I am curious to know if it is possible to create different resources based on one model's scopes.
For example, I have a
Listing
model with a type
scope. Can I create a GameListingResource
for Listing
s with a type of Game
, and a GiftCardResource
for Listing
s with a type of GiftCard
?
If yes, how can I do that?
If no, any suggestions would be appreciated.6 replies
Handle Query Exception
I have a slug column in db table but it dosen't exist on the form and generated by spatie/laravel-sluggable . how can I check either the slug is unique before creating the model in Filament resource or how can I handle query exception to show the notification
4 replies
Add action buttons to custom page with HasForms
Hi everyone,
I have a question regarding the best method to add action buttons, such as "Create" to my custom page. I've been searching through the documentation, but couldn't find any relevant information.
I attempted to implement the
HasFormActions
interface on my Page
and added the getCachedFormAction()
method. However, I'm unsure how to properly render these buttons in the view.
If anyone has any insights or suggestions, I would greatly appreciate your help.
Thank you!
and my view :
8 replies