¨4.0.1¨
This commit is contained in:
@@ -35,16 +35,19 @@ class Transaction extends Model
|
||||
*/
|
||||
protected $dates = ['deleted_at'];
|
||||
|
||||
|
||||
public function order()
|
||||
{
|
||||
return $this->belongsTo(Order::class);
|
||||
}
|
||||
|
||||
|
||||
public function getPaymentMethodAttribute($paymentMethod)
|
||||
{
|
||||
return Gateway::get($paymentMethod)->label ?? '';
|
||||
}
|
||||
|
||||
|
||||
public function table()
|
||||
{
|
||||
return new TransactionTable($this->newQuery());
|
||||
|
||||
Reference in New Issue
Block a user