Transaction
class
Transaction extends AbstractModel
Properties summary
Type | Property | Description | |
---|---|---|---|
protected | $table | ||
protected | $dates | ||
protected | $appends | ||
protected | $columnMap | ||
$timestamps |
Methods summary
Return Type | Method Name | Description | |
---|---|---|---|
BelongsTo | client() | A transaction can belong to a client. | |
BelongsTo | invoice() | A transaction can belong to an invoice. | |
Builder | scopeLookup(Builder $query, string $gateway, string $transactionId) | Perform a transaction lookup for a given gateway and transaction ID. | |
string|null | getFormattedTransactionIdAttribute() | Retrieve the transaction after formatting. |
Details
BelongsTo
client ()
A transaction can belong to a client.
BelongsTo
invoice ()
A transaction can belong to an invoice.
Builder
scopeLookup (Builder $query, string $gateway, string $transactionId)
Perform a transaction lookup for a given gateway and transaction ID.
string|null
getFormattedTransactionIdAttribute ()
Retrieve the transaction after formatting.