mardi 2 janvier 2018

Store session value in a variable in laravel

I'm trying to store a session in a variable using session()->push() in laravel but it returns undefined variable if I dd() it. Please see my code below:

$names = session()->push('names', ['John', 'Billy', 'Alex', 'Jeff']);

dd($names);



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2Cae55O
via IFTTT

Aucun commentaire:

Enregistrer un commentaire