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

Commit

Permalink
Merge pull request #33 from kslimani/fix-uuid-trait
Browse files Browse the repository at this point in the history
fix: change uuid scope trait boot method
  • Loading branch information
joselfonseca authored Sep 9, 2017
2 parents 07c8c4f + c557fef commit 73a20df
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/Support/UuidScopeTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ public function scopeByUuid($query, $uuid)
}

/**
* Boot function from laravel.
* Boot the uuid scope trait for a model.
*
* @return void
*/
protected static function boot()
protected static function bootUuidScopeTrait()
{
parent::boot();

static::creating(function ($model) {
if (empty($model->uuid)) {
$model->uuid = Uuid::generate()->string;
Expand Down

0 comments on commit 73a20df

Please sign in to comment.