Skip to content

Commit 8d18ac6

Browse files
authored
Merge pull request LaravelCollective#627 from ChrisThompsonTLDR/bugfix/route-arrays
Fixes a bug where passed to route() causes errors
2 parents 64f2268 + ae9f533 commit 8d18ac6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/FormBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1201,7 +1201,7 @@ protected function getUrlAction($options)
12011201
protected function getRouteAction($options)
12021202
{
12031203
if (is_array($options)) {
1204-
return $this->url->route($options[0], array_slice($options, 1));
1204+
return $this->url->route($options[0], head(array_slice($options, 1)));
12051205
}
12061206

12071207
return $this->url->route($options);

0 commit comments

Comments
 (0)