{$model->getKeyName()}) === true) { $model->{$model->getKeyName()} = Str::uuid()->toString(); } }); } /** * Get the value indicating whether the IDs are incrementing. */ public function getIncrementing(): bool { return false; } /** * Get the auto-incrementing key type. */ public function getKeyType(): string { return 'string'; } }