Move base_cost/base_charge product::class methods into __get(), and base_charge(), no functional changes
This commit is contained in:
@@ -33,11 +33,6 @@ abstract class Type extends Model
|
||||
|
||||
/* ATTRIBUTES */
|
||||
|
||||
public function getBaseCostAttribute(?float $val): float
|
||||
{
|
||||
return $val ?: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* This will return the category of the product (eg: domain, hosting, etc) which is the basis for all
|
||||
* other logic of these types.
|
||||
|
Reference in New Issue
Block a user