diff --git a/README.md b/README.md index 73d4b826..1103bea1 100644 --- a/README.md +++ b/README.md @@ -117,7 +117,7 @@ class MyFlexibleCast extends FlexibleCast } ``` -If you need more control, you can [override the `getLayoutMappings` method](https://whitecube.github.io/nova-flexible-content/#/?id=having-more-control-over-the-layout-mappings) instead. +If you need more control, you can [override the `getLayoutMapping` method](https://whitecube.github.io/nova-flexible-content/#/?id=having-more-control-over-the-layout-mappings) instead. #### The Layouts Collection diff --git a/docs/README.md b/docs/README.md index 87433e7e..e1b950c7 100644 --- a/docs/README.md +++ b/docs/README.md @@ -173,14 +173,14 @@ class MyFlexibleCast extends FlexibleCast #### Having more control over the layout mappings -If you need to do complex things with your mappings instead of having a static array as shown above, you can override the `getLayoutMappings` method on your cast. +If you need to do complex things with your mappings instead of having a static array as shown above, you can override the `getLayoutMapping` method on your cast. ```php namespace App\Casts; class MyFlexibleCast extends FlexibleCast { - protected function getLayoutMappings() + protected function getLayoutMapping() { $mappings = [];