Skip to content

Commit

Permalink
Merge pull request #8855 from appcia/5.0
Browse files Browse the repository at this point in the history
[5.0] "action()" could also generate relative urls
  • Loading branch information
taylorotwell committed May 23, 2015
2 parents 5fa1e3e + fe3dcfb commit cb6902f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Illuminate/Foundation/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,12 @@ function abort($code, $message = '', array $headers = array())
*
* @param string $name
* @param array $parameters
* @param bool $absolute
* @return string
*/
function action($name, $parameters = array())
function action($name, $parameters = array(), $absolute = true)
{
return app('url')->action($name, $parameters);
return app('url')->action($name, $parameters, $absolute);
}
}

Expand Down

0 comments on commit cb6902f

Please sign in to comment.