s6carlo

Results 19 comments of s6carlo

FormButton `setUrl` method is working for SaveAndClose and Save buttons. It does not work for Cancel button, this is because class Cancel has a URL in "initialize" method. I add...

Solved using a customized button instead of cancel ``` $button->setName('cancel'); $button->setText('Cancel'); $button->setUrl($url); $button->setHtmlAttributes($button->getHtmlAttributes() + [ 'class' => 'btn btn-warning', ]); $form->getButtons()->setButtons([ $button ]); ```

Is it possible that save and close does not fire "Save" event? The redirect url works, but data are not saved

Using "setUrl" for buttons the default action is not fired, it behaves as a link. Is it a bug ?

Change bindShared method with singleton method to solve it, waiting for a package update

I follow antonim solution, it works but after that you need to execute `composer dump-autoload -o` otherwise laravel application continue to search "String" class and gives error.

I had a similar problem, but now I am switching to the new admin version https://github.com/LaravelRUS/SleepingOwlAdmin https://github.com/LaravelRUS/SleepingOwlAdmin/issues/69

I have the necessity to create from a form both a new istance of the connected model and a new istance of a related model. I am using this solution...

Update: the problem is connected with string values as primary key. If I set ``` protected $primaryKey = 'product_code'; ``` I can edit products that have a number as product_code...

No not solved,but actually I found a way to "avoid" it. I need a model with a string key only for "join actions" (multiselect). So I wrote a new model...