resources er uit gesloopt
linter / quality (push) Failing after 1m4s
tests / ci (8.3) (push) Failing after 49s
tests / ci (8.4) (push) Failing after 1m5s
tests / ci (8.5) (push) Failing after 1m5s

This commit is contained in:
Daan Meijer
2026-06-23 17:56:40 +02:00
parent ae925c7173
commit 8d95e4ee53
15 changed files with 28 additions and 225 deletions
+10
View File
@@ -105,6 +105,16 @@ class Mutation extends Model
});
}
protected $appends = ['can'];
public function getCanAttribute(): array
{
return [
'update' => auth()->user()?->can('update', $this) ?? false,
'void' => auth()->user()?->can('void', $this) ?? false,
];
}
public function getRouteKeyName()
{
return 'uuid';