How do I add Actions to the top of a form next to delete.
I would like to set up my forms so that the save buttons are at the top and bottom of the form, along with the delete, cancel, and view on front end.
You have the save buttons on the create form, but I do not know how to get them on the edit, nor how to add to the header.
the view on front end may not be on all models, so how would I add it manually to models that need it?
I created the actions below, but they dont do what they are supposed to do. So if there is prebuilt actions for this purpose, how do I add it either within the form or in the header/footers
You have the save buttons on the create form, but I do not know how to get them on the edit, nor how to add to the header.
the view on front end may not be on all models, so how would I add it manually to models that need it?
I created the actions below, but they dont do what they are supposed to do. So if there is prebuilt actions for this purpose, how do I add it either within the form or in the header/footers
Section::make()
->schema([
Actions::make([
Action::make('saveAndCreateAnother')
->label('Save & Create Another')
->button()
,
Action::make('saveAndClose')
->label('Save & Close')
->button(),
Action::make('cancel')
->label('Cancel')
->button(),
Action::make('viewFrontend')
->label('View on site')
->icon('heroicon-o-eye')
->button()
->url(fn($get
) => route('hobby',
$get('slug')))
->openUrlInNewTab(),
]),
