getUuidColumns() as $column) { if (empty($model->{$column})) { $model->{$column} = (string) Str::uuid(); } } }); } public function getUuidColumns(): array { return property_exists($this, 'uuidColumns') ? $this->uuidColumns : ['uuid']; } }