We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1d54de4 + ba24cd2 commit e0cc1e1Copy full SHA for e0cc1e1
1 file changed
user_guide_src/source/general/common_functions.rst
@@ -298,6 +298,12 @@ Miscellaneous Functions
298
.. php:function:: redirect(string $route)
299
300
:param string $route: The reverse-routed or named route to redirect the user to.
301
+ :rtype: RedirectResponse
302
+
303
+ .. important:: When you use this function, an instance of ``RedirectResponse`` must be returned
304
+ in the method of the :doc:`Controller <../incoming/controllers>` or
305
+ the :doc:`Controller Filter <../incoming/filters>`. If you forget to return it,
306
+ no redirection will occur.
307
308
Returns a RedirectResponse instance allowing you to easily create redirects:
309
0 commit comments