refactor observers, fix policy, add feature tests

This commit is contained in:
2026-05-07 05:31:22 +07:00
parent f5615038b4
commit 8cb9c0eb96
9 changed files with 216 additions and 36 deletions
-2
View File
@@ -9,8 +9,6 @@ class Approval extends Model
{
protected $fillable = ['model_type', 'model_id', 'required_approvals', 'status'];
protected $with = ['items.user'];
public function items(): HasMany
{
return $this->hasMany(ApprovalItem::class);