price * $this->quantity; } public function product() { return $this->belongsTo(Product::class); } public function order() { return $this->belongsTo(Order::class); } public function company() { return $this->belongsTo(Company::class); } }