Support the ongoing development of Laravel.io →
posted 9 years ago
Session
Last updated 2 years ago.
0

This might work, http://laravel.io/forum/05-22-2014-using-session-as-a-simple-array

Something like,

$data   = Session::get('addresses'); 
$data[] = 'cottage'; 
Session::put('addresses', $data);

Hope that helps.

0

TerrePorter said:

This might work, http://laravel.io/forum/05-22-2014-using-session-as-a-simple-array

Something like,

$data   = Session::get('addresses'); 
$data[] = 'cottage'; 
Session::put('addresses', $data);

Hope that helps.

Not as elegant as I had hoped but it definitely works.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.