I can create session array in Laravel only with defining key
by hand using Session::put('items.key','1')
, but I have a situation when I just need keys to be made automatically as I would use simple PHP function $items[]=value
. How can I do this in Laravel session?
P.S. I have tried Session::put('items[]','1')
, but it doesn't worked.
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2psVpbV
via IFTTT
Aucun commentaire:
Enregistrer un commentaire