Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [];

Expand Down