over naar uuids, policies, predefined mutations aan kunnen passen
linter / quality (push) Failing after 1m5s
tests / ci (8.4) (push) Failing after 1m7s
tests / ci (8.5) (push) Failing after 1m5s
tests / ci (8.3) (push) Failing after 12m5s

This commit is contained in:
Daan Meijer
2026-06-21 23:09:38 +02:00
parent 06e5600447
commit 1e0782385b
46 changed files with 1287 additions and 160 deletions
+16 -3
View File
@@ -11,14 +11,27 @@ class PredefinedMutation extends Model
use HasFactory;
protected $fillable = [
'ledger_id',
'dynamic_id',
'name',
'description',
'amount',
'type',
];
public function ledger(): BelongsTo
public function dynamic(): BelongsTo
{
return $this->belongsTo(Ledger::class);
return $this->belongsTo(Dynamic::class);
}
protected static function booted(): void
{
static::creating(function ($model) {
$model->uuid = (string) \Illuminate\Support\Str::uuid();
});
}
public function getRouteKeyName()
{
return 'uuid';
}
}