0

Please take a look first to my picture to see data structure. I would like to call 'event_name'

i have tried :

$session->event_name;

This not working. enter image description here

2
  • you mean $session['event_name']; Commented Mar 25, 2019 at 21:57
  • Thank you it's working with that code Commented Mar 25, 2019 at 21:59

1 Answer 1

1

Your screenshot displays an array, therefore the value would be accessible like so:

$session['event_name'];

But if you are using the Laravel session tools: https://laravel.com/docs/5.8/session#retrieving-data

You can do this:

$session->get('event_name');
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.