mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 14:14:03 +00:00
Fix style
This commit is contained in:
parent
dd00f188d4
commit
8c835f2769
1 changed files with 1 additions and 1 deletions
|
|
@ -11,7 +11,7 @@ trait GeneratesIds
|
||||||
public static function bootGeneratesIds()
|
public static function bootGeneratesIds()
|
||||||
{
|
{
|
||||||
static::creating(function (self $model) {
|
static::creating(function (self $model) {
|
||||||
if (!$model->getKey() && $model->shouldGenerateId()) {
|
if (! $model->getKey() && $model->shouldGenerateId()) {
|
||||||
$model->setAttribute($model->getKeyName(), app(UniqueIdentifierGenerator::class)->generate($model));
|
$model->setAttribute($model->getKeyName(), app(UniqueIdentifierGenerator::class)->generate($model));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue