Skip to content

Commit 11c99e3

Browse files
committed
fix: syntax error
1 parent e4effb2 commit 11c99e3

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/Macros/RouterMacros.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,19 +46,23 @@ public function multilingualResource(): Closure
4646
? $this->container->make(MultilingualRegistrar::class)
4747
: new MultilingualRegistrar($this);
4848

49-
return new MultilingualResourcePendingRegistration(
49+
$resource = new MultilingualResourcePendingRegistration(
5050
$registrar,
5151
$key,
5252
$controller,
5353
$options['locales'] ?? locales()
54-
)->options($options);
54+
);
55+
56+
$resource->options($options);
57+
58+
return $resource;
5559
};
5660
}
5761

5862
/**
5963
* Check if a route with the given name exists for the current locale.
6064
*
61-
* @param string|array $name
65+
* @param array|string $name
6266
* @return \Closure
6367
*/
6468
public function hasLocalized(): Closure

0 commit comments

Comments
 (0)