|
@@ -29,6 +29,27 @@ class URL {
|
|
return static::to(URI::current());
|
|
return static::to(URI::current());
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
|
|
+ * Get the URL for the application root.
|
|
|
|
+ *
|
|
|
|
+ * @param bool $https
|
|
|
|
+ * @return string
|
|
|
|
+ */
|
|
|
|
+ public static function home($https = false)
|
|
|
|
+ {
|
|
|
|
+ $route = Router::find('home');
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ if ( ! is_null($route))
|
|
|
|
+ {
|
|
|
|
+ return static::to_route('home');
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ return static::to('/', $https);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
|
|
* Get the base URL of the application.
|
|
* Get the base URL of the application.
|
|
*
|
|
*
|