/** * Generate a URL to a controller action. * * <code> * // Generate a URL to the "index" method of the "user" controller * $url = action('user@index'); * * // Generate a URL to http://example.com/user/profile/taylor * $url = action('user@profile', array('taylor')); * </code> * * @param string $action * @param array $parameters * @return string */ function action($action, $parameters = array()) { return Laravel\URL::to_action($action, $parameters); }
/** * Generate a URL to a controller action. * * <code> * // Generate a URL to the "index" method of the "user" controller * $url = action('user@index'); * * // Generate a URL to http://example.com/user/profile/taylor * $url = action('user@profile', array('taylor')); * </code> * * @param string $action * @param array $parameters * @param bool $https * @return string */ function action($action, $parameters = array(), $https = false) { return Laravel\URL::to_action($action, $parameters, $https); }