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