mardi 21 juillet 2020

How to check an array value is available in session array in laravel?

How to check an array value is available in session array in laravel?

My Seesion array look like

Array ( 
       [0] => Array ( 
                     [id] => qwewa,
                     [prod_name] => p1
                    ) 
       [1] => Array ( 
                     [id] => asdsa,
                     [prod_name] => p2
                    )
      )

i want to check whether a particular id is available in my session array or not. i tried with pluck, has, data get

Suggest me how to in_array function in laravel effectively.



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2OK2SAP
via IFTTT

Aucun commentaire:

Enregistrer un commentaire