Beispiel #1
0
 /**
  * Create a redirect response to a named route.
  *
  * <code>
  *		// Create a redirect response to the "login" named route
  *		return Redirect::to_route('login');
  *
  *		// Create a redirect response to the "profile" named route with parameters
  *		return Redirect::to_route('profile', array($username));
  * </code>
  *
  * @param  string    $route
  * @param  array     $parameters
  * @param  int       $status
  * @return Redirect
  */
 public static function to_route($route, $parameters = array(), $status = 302)
 {
     return static::to(URL::to_route($route, $parameters), $status);
 }
 public static function link_to_route($name, $title = null, $parameters = array(), $attributes = array())
 {
     return static::link(URL::to_route($name, $parameters), $title, $attributes);
 }