2

I am developing a custom behavior in backpack-for-laravel V4 to upload files then user will be forwarded to a screen to match the content of file contents.

There will be two steps in this behavior so I need to change save_action first to upload and in the next screen it will be save header.

Please advice,

Ya Basha
  • 1,902
  • 6
  • 30
  • 54
  • I managed to do that by editing `vendor/backpack/crud/src/app/Library/CrudPanel/Traits/SaveActions.php` I added the operation I want and the `saveAction` and it worked as expected on the operation I want, but I am searching for a better solution without the need to edit library files, because of this I kept this question open. – Ya Basha Oct 17 '19 at 05:56

1 Answers1

1

Good news for you. There is a full PR to allow devs to manipulate saveActions.

backpack dynamic save actions

I think it's going to be merged on 4.1 but you can manually add the code in your project if you need it ASAP.

Best, Pedro

Pedro X
  • 849
  • 5
  • 13