How to Storing Session Data in Laravel ?
Answers were Sorted based on User's Feedback
Answer / rishabh khanna
Data can be stored in session using the put() method.
The put() method will take two arguments, the “key” and the “value”.
Syntax : $request->session()->put('key', 'value');
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / Shagufta Pravin
To store session data in Laravel, you can use the `session` global variable. For example: `$request->session()->put('key', 'value');`. To retrieve the value, you can use: `$request->session()->get('key')`.
| Is This Answer Correct ? | 0 Yes | 0 No |
How to check an input value is present or not in laravel?
How to resolve class instance out of the container in laravel?
What do you understand by unit testing?
What are the steps to configure homestead?
What is routing in laravel?
Why middleware is used in laravel?
How to generate a controller with resources in laravel?
How to use basic routing in laravel?
How to Assigning Middleware to Route ?
List the default ports that are forwarded to your homestead environment?
Does laravel use mvc?
why we use Laravel - Session ?