Skip to content

Commit

Permalink
The action should only be defaulted when there are no patterns
Browse files Browse the repository at this point in the history
Only default the action name when there is no default & no pattern
defined.
  • Loading branch information
markstory committed Aug 30, 2016
1 parent 80c123b commit 0459a35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Routing/RouteBuilder.php
Expand Up @@ -454,7 +454,7 @@ public function resources($name, $options = [], $callback = null)
*/
public function connect($route, array $defaults = [], array $options = [])
{
if (!isset($defaults['action'])) {
if (!isset($options['action']) && !isset($defaults['action'])) {
$defaults['action'] = 'index';
}

Expand Down

0 comments on commit 0459a35

Please sign in to comment.