I have session Array of two variables, id and distance, I want to show all stores from DB where ids in session equal to ids in stores also I want to show the distance of every store with store details, please note that Im new to laravel, Thank you
dd(session('storeinfo'));
array:252 [▼
0 => array:2 [▼
"id" => 76
"distance" => "3.23"
]
1 => array:2 [▼
"id" => 77
"distance" => "7.09"
]
Store in DB:
$stores = Storeinfo::all();