Skip to content

Commit 55f96fb

Browse files
authored
Fix UuidTrait (#2094)
Boot method having protected it should be public and no need to call parent boot method
1 parent 8236acb commit 55f96fb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

docs/advanced-usage/uuid.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,8 @@ It is common to use a trait to handle the $keyType and $incrementing settings, a
9696

9797
trait UuidTrait
9898
{
99-
protected static function bootUuidTrait()
99+
public static function bootUuidTrait()
100100
{
101-
parent::boot();
102-
103101
static::creating(function ($model) {
104102
$model->keyType = 'string';
105103
$model->incrementing = false;

0 commit comments

Comments
 (0)