Skip to content
This repository was archived by the owner on Feb 18, 2023. It is now read-only.

Commit 73a20df

Browse files
authored
Merge pull request #33 from kslimani/fix-uuid-trait
fix: change uuid scope trait boot method
2 parents 07c8c4f + c557fef commit 73a20df

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/Support/UuidScopeTrait.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ public function scopeByUuid($query, $uuid)
2020
}
2121

2222
/**
23-
* Boot function from laravel.
23+
* Boot the uuid scope trait for a model.
24+
*
25+
* @return void
2426
*/
25-
protected static function boot()
27+
protected static function bootUuidScopeTrait()
2628
{
27-
parent::boot();
28-
2929
static::creating(function ($model) {
3030
if (empty($model->uuid)) {
3131
$model->uuid = Uuid::generate()->string;

0 commit comments

Comments
 (0)