Commit 88fc4e45 authored by Taylor Otwell's avatar Taylor Otwell

added url::current.

parent 8fc48f7c
...@@ -9,6 +9,16 @@ class URL { ...@@ -9,6 +9,16 @@ class URL {
*/ */
public static $base; public static $base;
/**
* Get the full URL for the current request.
*
* @return string
*/
public static function current()
{
return static::to(URI::current());
}
/** /**
* Get the base URL of the application. * Get the base URL of the application.
* *
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment