Skip to content Docs index for AI agents (llms.txt)

coreTransazioni

Transazioni

Updated 1 min read

Introduzione

Le Transazioni rappresentano i pagamenti (transazioni economiche) e possono essere abbinate a qualsiasi resource.

# Resources Database Tables
1 app\Filament\Clusters\Accountings\Resources\PaymentReceipts\PaymentReceiptResource.php payments_receipts
2 app\Filament\Clusters\Accountings\Resources\PaymentMethods\PaymentMethodResource.php payments_methods

Aggiunta ad una Resource

Aggiungere la gestione delle Transazioni (PaymentReceipts) ad un model ed una resource

  • Nel Model aggiungere il trait (HasPaymentReceipts)
php
use App\Traits\HasPaymentReceipts;
  • Aggiungere nelle RelationsManagers la classe: PaymentReceiptRelationManager.php (copiandola da altra resource e adattandola)
  • Aggiungere nella getRelationManager della resource la classe relazionata
php
RelationManagers\PaymentReceiptRelationManager::class,