Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

swamydeshetty's avatar

while storing the data in the sessions im getting the issues

if i store the data like this in the sessions it is not storing $val4 = '2'; $count = 4; $upload = 'Upload in Progress'; \Log::info('Values before storing in session:', ['val4' => $val4, 'count' => $count, 'upload' => $upload]); // Store in session session()->put('StoreData', compact('val4', 'count', 'upload'));

But if i store like this it is working $val4 = 'MANESH'; $count = 7; $upload = 'SWAMY DESHETTY'; session()->put('StoreData', compact('val4', 'count', 'upload')); why ? like this what is the issue on the first code please let me know that?..

0 likes
3 replies

Please or to participate in this conversation.