Skip to content

Commit f94f5ca

Browse files
committed
docs: update the user guide
1 parent d9bb92d commit f94f5ca

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

user_guide_src/source/general/common_functions.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -278,9 +278,9 @@ Miscellaneous Functions
278278
Context can be used to substitute values in the message string. For full details, see the
279279
:doc:`Logging Information <logging>` page.
280280

281-
.. php:function:: redirect( string $uri )
281+
.. php:function:: redirect( string $route )
282282
283-
:param string $uri: The URI to redirect the user to.
283+
:param string $route: The reverse-routed or named route to redirect the user to.
284284

285285
Returns a RedirectResponse instance allowing you to easily create redirects::
286286

@@ -305,7 +305,7 @@ Miscellaneous Functions
305305
// Copies all headers from the global response instance
306306
return redirect()->back()->withHeaders();
307307

308-
When passing a URI into the function, it is treated as a reverse-route request, not a relative/full URI,
308+
When passing an argument into the function, it is treated as a named/reverse-routed route, not a relative/full URI,
309309
treating it the same as using redirect()->route()::
310310

311311
// Go to a named/reverse-routed URI

0 commit comments

Comments
 (0)