8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a5789dc + 81a8fed commit e6254b2Copy full SHA for e6254b2
src/Routing/UrlGenerator.php
@@ -38,6 +38,26 @@ public function __construct(Application $app)
38
$this->app = $app;
39
}
40
41
+ /**
42
+ * Get the full URL for the current request.
43
+ *
44
+ * @return string
45
+ */
46
+ public function full()
47
+ {
48
+ return $this->app->make('request')->fullUrl();
49
+ }
50
+
51
52
+ * Get the current URL for the request.
53
54
55
56
+ public function current()
57
58
+ return $this->to($this->app->make('request')->getPathInfo());
59
60
61
/**
62
* Generate a url for the application
63
*
0 commit comments