Skip to content

Commit

Permalink
Document purgeable included by default
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeTowers authored Dec 28, 2023
1 parent 3842c26 commit 0382634
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions database/traits.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ class User extends Model

## Purgeable

>**NOTE:** The Purgeable trait is applied to all models extending the base `Winter\Storm\Database\Model` class by default.
Purged attributes will not be saved to the database when a model is created or updated. To purge attributes in your model, apply the `Winter\Storm\Database\Traits\Purgeable` trait and declare a protected `$purgeable` property with an array containing the attributes to purge.

```php
Expand Down

0 comments on commit 0382634

Please sign in to comment.