get deployment plan

This commit is contained in:
2025-05-22 17:19:28 +01:00
parent bfe0f8eabf
commit 4051afca4e
6 changed files with 50 additions and 17 deletions

View File

@@ -10,6 +10,15 @@ class Deployment extends Model
{
protected $guarded = [];
public static function boot(): void
{
parent::boot();
static::creating(function (self $deployment) {
$deployment->hash = str()->random(16);
});
}
protected function casts(): array
{
return [