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.
1 parent e2e4c4a commit d17b3bfCopy full SHA for d17b3bf
src/Pecee/SimpleRouter/Route/ILoadableRoute.php
@@ -46,6 +46,16 @@ public function setUrl(string $url): self;
46
*/
47
public function prependUrl(string $url): self;
48
49
+ /**
50
+ * Sets the router name, which makes it easier to obtain the url or router at a later point.
51
+ * Alias for LoadableRoute::setName().
52
+ *
53
+ * @param string|array $name
54
+ * @return static
55
+ * @see LoadableRoute::setName()
56
+ */
57
+ public function name(array|string $name): self;
58
+
59
/**
60
* Returns the provided name for the router.
61
*
0 commit comments