Skip to content

Commit

Permalink
Camel case variables that get passed to the views (#18083)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastiandedeyne authored and taylorotwell committed Feb 24, 2017
1 parent b7a667a commit 6cc6acf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion View.php
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ public function __call($method, $parameters)
throw new BadMethodCallException("Method [$method] does not exist on view.");
}

return $this->with(Str::snake(substr($method, 4)), $parameters[0]);
return $this->with(Str::camel(substr($method, 4)), $parameters[0]);
}

/**
Expand Down

0 comments on commit 6cc6acf

Please sign in to comment.