From 88fc4e450d35a000be9fb53708662c9f571f0edc Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Tue, 7 Feb 2012 13:31:08 -0600 Subject: [PATCH] added url::current. --- laravel/url.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/laravel/url.php b/laravel/url.php index f207b948..45d3a670 100644 --- a/laravel/url.php +++ b/laravel/url.php @@ -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. *