diff --git a/changes.md b/changes.md index 803d89cc0..1194ef358 100644 --- a/changes.md +++ b/changes.md @@ -24,6 +24,7 @@ - Added a `Dispatcher::on` method to indicate which domain the dispatcher should work on. - Relations are automatically loaded when using Fractal includes. - Added a `Dispatcher::raw` method to return a raw response object instead of the original content. +- Renamed `ControllerTrait::scope` to `ControllerTrait::scopes` for consistency with other methods of definding scopes. ### v0.6.5 diff --git a/src/Routing/ControllerTrait.php b/src/Routing/ControllerTrait.php index ce16445b8..cbe1194fd 100644 --- a/src/Routing/ControllerTrait.php +++ b/src/Routing/ControllerTrait.php @@ -44,7 +44,7 @@ trait ControllerTrait * @param string|array $methods * @return \Illuminate\Routing\Controller */ - protected function scope($scopes, $methods = null) + protected function scopes($scopes, $methods = null) { $scopes = $this->preparePropertyValue($scopes);