Product class optimisation
This commit is contained in:
@@ -34,17 +34,8 @@ final class Broadband extends Type implements ProductItem
|
||||
// The model that is referenced when this product is ordered
|
||||
protected string $order_model = ServiceBroadband::class;
|
||||
|
||||
/* RELATIONS */
|
||||
|
||||
/**
|
||||
* The offering supplied with this product
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\HasOne
|
||||
*/
|
||||
public function supplied()
|
||||
{
|
||||
return $this->hasOne(SupplierBroadband::class,'id','supplier_item_id');
|
||||
}
|
||||
// The model that the supplier supplies
|
||||
const SupplierModel = SupplierBroadband::class;
|
||||
|
||||
/* INTERFACES */
|
||||
|
||||
|
Reference in New Issue
Block a user