How do I set a redirect for a MultipleFormBuilder?

daviesgeek - 5 months ago

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.

Answer

- 5 months ago

On the builder:

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

Or using builder methods:


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

daviesgeek - 5 months ago

On the builder:

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

Or using builder methods:


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