Skip to content

Commit

Permalink
Fix uuid template
Browse files Browse the repository at this point in the history
  • Loading branch information
EsdertCO committed Jul 24, 2020
1 parent fbb9598 commit adfee42
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/stubs/trait-uuid.stub
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ trait DummyClass

static::creating(function ($model) {

$model->$uuidField = Str::uuid();
$field = self::$uuidField;
$model->$field = Str::uuid();
});
}
}

0 comments on commit adfee42

Please sign in to comment.