first commit

This commit is contained in:
2025-09-10 15:28:46 +03:30
commit 00edec179a
204 changed files with 21024 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
<?php
namespace App\Traits;
use Illuminate\Support\Str;
trait HasUuid
{
public static function bootHasUuid(): void
{
static::creating(function ($model) {
if (!$model->uuid) {
$model->uuid = Str::uuid()->toString();
}
});
}
}