first commit

This commit is contained in:
Simon Pocrnjič
2024-10-28 21:08:16 +01:00
commit 90a5858320
199 changed files with 21177 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
<?php
namespace App\Traits;
use Illuminate\Support\Str;
trait Uuid
{
protected static function boot(){
parent::boot();
static::creating(function ($model) {
$model->uuid = (string) Str::uuid();
});
}
}