Support the ongoing development of Laravel.io →
posted 1 year ago
Session
0

I think you have a wrong understanding of how to call the index or a method of a controller. Please look at the documentation. https://laravel.com/docs/9.x/controllers#basic-controllers

0

Thanks for the reply cemarta7 but, I believe that once a session variable is loaded and its contents checked, the contents of the session variable must be visible everywhere in the program. I err?

0

This does not set the value dd(session('array_attivita'))

You need to do session(['key'=>'value'])

Take a look at the session storing methods in the documentation https://laravel.com/docs/9.x/session#storing-data

buitranduong liked this reply

1

I realize I documented my question terrible. I'll do better next time. Thank you for your patience and replies. Good day. See you next time.

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.