Redirect back with errors #1120
-
Hi! I'm using a button in the list view which call a function, is it possible to do a redirect back with errors and have backpack show the error when the function return an error? |
Beta Was this translation helpful? Give feedback.
Answered by
pxpm
Aug 14, 2024
Replies: 1 comment 1 reply
-
Hey @miquelangeld To display alert messages (the ones on the top right corner), you can flash an alert to the session before the redirect: Alert::error('you cant do this')->flash();
return redirect() .... Let me know if that helps 👍 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
miquelangeld
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @miquelangeld
To display alert messages (the ones on the top right corner), you can flash an alert to the session before the redirect:
Let me know if that helps 👍