added url::current.

This commit is contained in:
Taylor Otwell 2012-02-07 13:31:08 -06:00
parent 8fc48f7c7e
commit 88fc4e450d
1 changed files with 10 additions and 0 deletions

View File

@ -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.
* *