crud
crud copied to clipboard
The value of Button in form is being overwritten
I am trying to add a submit button at the end of the form.
public function fields(): array
{
return [
// other fields ...
Button::make($this::updateButtonLabel())
->class('btn btn-primary')->method('update')
];
}
The button is being added and seems to be working.
But the problem is, the button value is being overwritten and becoming model[Update ResourceName]
.
![CleanShot 2021-12-19 at 15 58 26@2x](https://user-images.githubusercontent.com/439612/146670911-48287201-9d2e-4371-b90f-461249648718.png)
How can I avoid this and keep the button name as is? Can anyone help?