|
@@ -10,7 +10,7 @@ discard block |
|
|
block discarded – undo |
|
10
|
10
|
use LogsActivity; |
|
11
|
11
|
protected $table = 'products'; |
|
12
|
12
|
protected $fillable = ['name', 'description', 'type', 'group', 'file', 'image', 'require_domain', 'category', |
|
13
|
|
- 'can_modify_agent', 'can_modify_quantity', 'show_agent', 'tax_apply', 'show_product_quantity', 'hidden', 'auto_terminate', |
|
|
13
|
+ 'can_modify_agent', 'can_modify_quantity', 'show_agent', 'tax_apply', 'show_product_quantity', 'hidden', 'auto_terminate', |
|
14
|
14
|
'setup_order_placed', 'setup_first_payment', 'setup_accept_manually', |
|
15
|
15
|
'no_auto_setup', 'shoping_cart_link', 'process_url', 'github_owner', |
|
16
|
16
|
'github_repository', |
|
@@ -19,7 +19,7 @@ discard block |
|
|
block discarded – undo |
|
19
|
19
|
protected static $logName = 'Product'; |
|
20
|
20
|
|
|
21
|
21
|
protected static $logAttributes = ['name', 'description', 'type', 'file', 'category', |
|
22
|
|
- 'github_owner', 'github_repository', 'version', 'subscription', 'hidden', 'product_sku', ]; |
|
|
22
|
+ 'github_owner', 'github_repository', 'version', 'subscription', 'hidden', 'product_sku', ]; |
|
23
|
23
|
|
|
24
|
24
|
protected static $logOnlyDirty = true; |
|
25
|
25
|
|
|
@@ -119,7 +119,7 @@ discard block |
|
|
block discarded – undo |
|
119
|
119
|
|
|
120
|
120
|
public function group() |
|
121
|
121
|
{ |
|
122
|
|
- return $this->belongsTo("App\Model\Product\ProductGroup",'group'); |
|
|
122
|
+ return $this->belongsTo("App\Model\Product\ProductGroup", 'group'); |
|
123
|
123
|
} |
|
124
|
124
|
|
|
125
|
125
|
public function plan() |