Skip to content
This repository was archived by the owner on Jul 16, 2023. It is now read-only.
Merged
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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -350,8 +350,8 @@ class User extends \LaravelBook\Ardent\Ardent {
You can also purge additional fields. The attribute `Ardent::$purgeFilters` is an array of closures to which you can add your custom rules. Those closures receive the attribute key as argument and should return `false` for attributes that should be purged. Like this:

```php
function __construct() {
parent::__construct();
function __construct($attributes = array()) {
parent::__construct($attributes);

$this->purgeFilters[] = function($key) {
$purge = array('tempData', 'myAttribute');
Expand Down