Answer Posted / 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 |
Post New Answer View All Answers
How to fetch data from database in laravel?
How to start valet?
List the applications supported by valet?
What is attribute casting and how does it work in eloquent?
Explain about laravel project?
How to create real time sitemap.xml file in laravel?
What is the command to connect vagrant via ssh?
What are the Versions Laravel - Understanding Release Process ?
What is heredoc syntax?
How do I make a particular task run everyday by 10pm?
What is laravel artisan?
How can we use middleware in laravel?
What is with() in laravel?
What is reverse routing?
How to registering middleware in laravel?