Skip to content

Commit

Permalink
Doc tweaks for redirects. Closes #1501
Browse files Browse the repository at this point in the history
  • Loading branch information
lonnieezell committed Dec 3, 2018
1 parent 7a69fae commit d7dfc5b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion system/Language/en/HTTP.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
'emptySupportedNegotiations' => 'You must provide an array of supported values to all Negotiations.',

// RedirectResponse
'invalidRoute' => '{0, string} is not a valid route.',
'invalidRoute' => '{0, string} route cannot be found while reverse-routing.',

// DownloadResponse
'cannotSetBinary' => 'When setting filepath can not set binary.',
Expand Down
6 changes: 6 additions & 0 deletions user_guide_src/source/general/common_functions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,12 @@ Miscellaneous Functions
// Set a flash message
return redirect()->back()->with('foo', 'message');

When passing a URI into the function, it is treated as a reverse-route request, not a relative/full URI, treating
it the same as using redirect()->route()::

// Go to a named/reverse-routed URI
return redirect('named_route');

.. php:function:: remove_invisible_characters($str[, $url_encoded = TRUE])
:param string $str: Input string
Expand Down

0 comments on commit d7dfc5b

Please sign in to comment.