'integer', 'amount' => 'integer', 'transaction_id' => 'string' ]; protected static $logName = 'billings'; protected static $recordEvents = ['deleted', 'updated']; protected static $logOnlyDirty = true; protected static $logAttributes = [ 'order_id', 'amount', 'transaction_id', 'status', 'payment_system' ]; protected static $submitEmptyLogs = false; public function order() { return $this->belongsTo(Order::class, 'order_id', 'id'); } }