How do I set a redirect for a MultipleFormBuilder?
Created 7 years ago by daviesgeek

Simple as that.

I have a MultipleFormBuilder that I'd like to redirect after saving. Much like setting the $redirect on a FormBuilder, after posting, I'd like it to redirect somewhere after it's done saving and all that good stuff.

daviesgeek  —  7 years ago Best Answer

On the builder:

protected $actions = [
    'save' => ['redirect' => 'redirect_url']

Or using builder methods:

$builder->setActions('save', ['redirect' => 'redirect_url']);