1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 10:54:04 +00:00

Fix style

This commit is contained in:
Samuel Stancl 2020-08-03 14:29:04 +02:00 committed by GitHub
parent dd00f188d4
commit 8c835f2769
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,7 +11,7 @@ trait GeneratesIds
public static function bootGeneratesIds()
{
static::creating(function (self $model) {
if (!$model->getKey() && $model->shouldGenerateId()) {
if (! $model->getKey() && $model->shouldGenerateId()) {
$model->setAttribute($model->getKeyName(), app(UniqueIdentifierGenerator::class)->generate($model));
}
});