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.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire