How to Storing Session Data in Laravel ?

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


Please Help Members By Posting Answers For Below Questions

What is use of pluck in laravel?

576


What is database migration used in laravel 5? Explain

496


Is laravel faster than rails?

575


What do you know about traits in laravel?

502


What is blade in laravel?

543


Tell me does laravel support caching?

541


How to use the custom table in laravel model?

520


What does orm stand for?

602


What is use keyword in laravel?

561


How to Create Creating a Cookie in Laravel ?

990


What is meant by check method ?

1232


How do I make a particular task run everyday by 10pm?

515


Is laravel the best php framework?

501


What service provider’s register method does?

559


How to access laravel project from another computer?

502