fix some handling 3
This commit is contained in:
@@ -146,10 +146,10 @@ class Product extends Model
|
||||
}
|
||||
|
||||
try {
|
||||
static::$orderLimitColumnsExist = Schema::hasColumn(
|
||||
(new static)->getTable(),
|
||||
'order_limit_enabled'
|
||||
);
|
||||
$table = (new static)->getTable();
|
||||
static::$orderLimitColumnsExist = Schema::hasColumn($table, 'order_limit_enabled')
|
||||
&& Schema::hasColumn($table, 'min_order_cash')
|
||||
&& Schema::hasColumn($table, 'max_order_cash');
|
||||
} catch (\Throwable) {
|
||||
static::$orderLimitColumnsExist = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user