'array', ]; /** * The attributes that should be mutated to dates. * * @var array */ 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()); } }