EMfinanga
4 months ago
214
6
Laravel

select Multiple input

Posted 4 months ago by EMfinanga

i want to select qnty where the condition is much

 $product_id=$request->product_id;
     $store=$request->store;

   $data=Stock::select('quantity')->where(['id'=> $product_id,'store'=>$store])->get();
                                           // ->where('store','=', $store)->get();

     $stockl=(int)$data->quantity+(int)$request->quantity;
     dd($data);

i get the error below

           Property [quantity] does not exist on this collection instance.

Please sign in or create an account to participate in this conversation.