Skip to content

Commit

Permalink
Fix keymapping
Browse files Browse the repository at this point in the history
  • Loading branch information
joesama committed Jan 6, 2020
1 parent 1479e37 commit 94e0a9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Routings/Concerns/Grammar.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ public function pathConvention(string $type, string $function, array $attributes
} else {
$keymap = collect($keymap)->map(function ($id, $key) use ($type) {
if (!is_int($key) && strtolower($key) === strtolower($type)) {
return null;
return '{' . $id . '}';
}

return '{' . $id . '}';
return null;
})->implode('/');

return $function . '/' . $keymap;
Expand Down

0 comments on commit 94e0a9d

Please sign in to comment.