added url::current.
This commit is contained in:
parent
8fc48f7c7e
commit
88fc4e450d
|
@ -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.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue