���� ������������������������������������ 'boolean', 'use_for_po' => 'boolean', ]; /** * Get the owning attachable model (polymorphic). */ public function attachable() { return $this->morphTo(); } /** * Get the budget item that owns the attachment. */ public function budgetItem() { return $this->belongsTo(BudgetItem::class, 'attachable_id') ->where('attachable_type', 'App\\Models\\BudgetItem'); } /** * Get the project that owns the attachment. */ public function project() { return $this->belongsTo(Project::class, 'project_id'); } }