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
Skjena8mo ago
You can achieve that like
Actions\CreateAction::make()
->label('Create Order')
->icon()
Actions\CreateAction::make()
->label('Create Order')
->icon()
Bagus A
Bagus A8mo ago
Where @Skjena ? In OrderResource, there's no CreateAction.
awcodes
awcodes8mo 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
Skjena8mo ago
You can modify this inside the CreateOrder page not on the OrderResource.
Bagus A
Bagus A8mo ago
How about the relationmanager? It doesn't have a record class.