How to Accessing Session Data in Laravel ?
Answer / amit khanna
To access the session data, we need an instance of session which can be accessed via HTTP request.
After getting the instance, we can use the get() method, which will take one argument, key, to get the session data.
Syntax : $value = $request->session()->get('key');
You can use all() method to get all session data instead of get() method.
| Is This Answer Correct ? | 0 Yes | 0 No |
How we can upload files in laravel? Explain
What is dd () in laravel?
How can you update homestead?
How to clear complete cache in laravel?
What is raw expression in laravel?
What is the use of object relational mapping?
Please explain what are the main differences between laravel 4 and laravel 5.x?
What is a controller middleware?
Do you know what is luman?
What is controller in laravel?
Explain laravel contracts?
What is laravel?