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)
use App\Traits\HasPaymentReceipts;- Aggiungere nelle
RelationsManagersla classe:PaymentReceiptRelationManager.php(copiandola da altra resource e adattandola) - Aggiungere nella
getRelationManagerdella resource la classe relazionata
RelationManagers\PaymentReceiptRelationManager::class,