F
Filament13mo ago
Bagus A

Where to rename create button in OrderResource page?

I found that we can change the create button from list because it's an action declared inside ListOrder page. But, where to change the label of the create in CreateOrder? For example, from "Create: to :Create Order" and adding an icon.
No description
5 Replies
Skjena
Skjena13mo ago
You can achieve that like
Actions\CreateAction::make()
->label('Create Order')
->icon()
Actions\CreateAction::make()
->label('Create Order')
->icon()
Bagus A
Bagus AOP13mo ago
Where @Skjena ? In OrderResource, there's no CreateAction.
awcodes
awcodes13mo ago
In the getFormActions method on the Create<Record> class The resource is just global access point for the whole record. But you can modify the Create, Edit and List in their respective page classes.
Skjena
Skjena13mo ago
You can modify this inside the CreateOrder page not on the OrderResource.
Bagus A
Bagus AOP13mo ago
How about the relationmanager? It doesn't have a record class.
Want results from more Discord servers?
Add your server