Redirect on save

Posted 4 years ago by christopher

Hey,

If i create or update something i want to give the user the possibility to "save" or "save & back".

In my controller i have currently this:

return Redirect::to('/profile')->withInput()->with('success', 'updated.')

How can i add a secound return IF the user clicks "save & back" ?

return Redirect::back()->withInput()->with('success', 'updated.')

Please sign in or create an account to participate in this conversation.