Skip to content

Instantly share code, notes, and snippets.

sdwarwick / route.php
Last active Nov 29, 2015
route parameters and url query parameters
View route.php
// Suppose you have a minimum of two routes, where a redirection to a route wants to include the original URL query string.
// The only way to add a URI query string to a route in Laravel is when you use the
// route( "named route" , "optional route parameters" ) construction.
// These "optional route parameters" are in the form of an array, potentially with associated keys.
// If the named route is a simple route, the associative array "optional route parameters" is used to build
// a URI query string.