create a public api for mappable transactions

This commit is contained in:
Omair Saleh
2023-06-21 16:34:50 +08:00
parent 096e039ffb
commit 7a171685f6
+4
View File
@@ -22,6 +22,10 @@ class Transaction extends AbstractModel implements Documentable, Transactionable
use SoftDeletes;
use LogData;
protected $casts = [
'type' => 'int'
];
protected $table = 'transactions';
public function owner(): morphTo