added url::current.

This commit is contained in:
Taylor Otwell
2012-02-07 13:31:08 -06:00
parent 8fc48f7c7e
commit 88fc4e450d

View File

@@ -9,6 +9,16 @@ class URL {
*/
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.
*