Add item to session array

Posted 1 month ago by vandyczech

I need store array with id in the session like this

Output for session()->all()['hidden']

1 , 2 , 3 , 4 , 5 ....

How can I add new id to the exist hidden array in session ?

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

Reply to

Use Markdown with GitHub-flavored code blocks.