public function getTargetPrice($id) { $targetPrice = UserPrice::select('users_price.*')->where('product_id', $id)->first(); return $targetPrice->target_price; }