Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Added in details of how to extend the 'extras' etc fake fields with mutators after receiving support here: https://stackoverflow.com/questions/76276923/issue-uploading-files-with-pagemanager/76280472#76280472
  • Loading branch information
SilverComet89 committed May 19, 2023
1 parent 571a3b3 commit ca13651
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,10 @@ If you need to make any modifications to the controller, model or request, you s
- create a new controller/model that extends the one in the package;
- enter controller or model in the pagemanager.php config file, and that's the one that the CRUD will be using;

## Optional: Mutator for fields using 'store_in' and 'fake' keys

Fake fields do not trigger individual mutators, they trigger the "fake column" mutator. For example instead of defining a `setImageAttribute()` mutator, please define a `setExtrasAttribute()` mutator. You'll have the `$value` then.

## Change log

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.
Expand Down

0 comments on commit ca13651

Please sign in to comment.