Skip to content

Commit

Permalink
Update src/Extracting/Shared/UrlParamsNormalizer.php
Browse files Browse the repository at this point in the history
  • Loading branch information
shalvah authored Jun 30, 2023
1 parent ff07ae3 commit 62ab69d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Extracting/Shared/UrlParamsNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ protected static function getInlineRouteKey(Route $route, string $paramName): ?s
*/
protected static function getRouteKeyFromModel(string $paramName, array $typeHintedEloquentModels): ?string
{
// Ensure param name is in camelCase so it matches the model name
// Ensure param name is in camelCase so it matches the argument name (e.g. The '$userAddress' in `function show(BigThing $userAddress`)
$paramName = Str::camel($paramName);

if (array_key_exists($paramName, $typeHintedEloquentModels)) {
Expand Down

0 comments on commit 62ab69d

Please sign in to comment.