We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e97b27 commit 11545d3Copy full SHA for 11545d3
src/AuditableTrait.php
@@ -9,12 +9,12 @@
9
/**
10
* @property Model $creator
11
* @property Model $updater
12
+ * @property bool $auditable
13
*/
14
trait AuditableTrait
15
{
16
+ public bool $auditable = true;
17
- public $auditable = true;
-
18
19
* Boot the audit trait for a model.
20
tests/Feature/AuditableModelTest.php
@@ -56,7 +56,7 @@
56
57
actingAs($user);
58
59
- $post = new Post();
+ $post = new Post;
60
$post->title = 'Hello World';
61
$post->auditable = false;
62
$post->save();
0 commit comments