Answer Posted / 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 |
Post New Answer View All Answers
What do you understand by orm?
How to create migrations in laravel? Explain step by steps.
What do you know about php artisan? Mention some artisan command.
What do you understand by eloquent orm?
Explain short notes on Laravel - Artisan Console and commands ?
How to enable/disable maintenance mode in laravel 5?
Write down the name of some aggregates methods provided by the laravel's query builder.
How to enable multiple php versions in homestead?
What is laravel?
What are Uses While Using the properties of Request instance ?
what is meant by Views ?
What is laravel route?
What is laravel illuminate?
How to configure network interfaces in homestead?
What is laravel horizon?