Skip to content

Commit b3c6556

Browse files
Defining properties correctly
The trait that handels the versioning is accessing `$versioned` as a property not as a variable as its showin in Read.me
1 parent ef4010d commit b3c6556

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ class User extends Model
5555
{
5656
use Versionable, SoftDeletes;
5757

58-
$timestamps = true;
58+
public $timestamps = true;
5959

60-
$versioned = ['email', 'city', 'updated_at', 'deleted_at'];
60+
public $versioned = ['email', 'city', 'updated_at', 'deleted_at'];
6161

6262
...
6363
}

0 commit comments

Comments
 (0)