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 e4effb2 commit 11c99e3Copy full SHA for 11c99e3
src/Macros/RouterMacros.php
@@ -46,19 +46,23 @@ public function multilingualResource(): Closure
46
? $this->container->make(MultilingualRegistrar::class)
47
: new MultilingualRegistrar($this);
48
49
- return new MultilingualResourcePendingRegistration(
+ $resource = new MultilingualResourcePendingRegistration(
50
$registrar,
51
$key,
52
$controller,
53
$options['locales'] ?? locales()
54
- )->options($options);
+ );
55
+
56
+ $resource->options($options);
57
58
+ return $resource;
59
};
60
}
61
62
/**
63
* Check if a route with the given name exists for the current locale.
64
*
- * @param string|array $name
65
+ * @param array|string $name
66
* @return \Closure
67
*/
68
public function hasLocalized(): Closure
0 commit comments