How to access session data?



How to access session data?..

Answer / Varsha Choudhary

In Laravel, you can access the session data by using the $request->session() helper function. This returns a new SessionManager instance, from which you can retrieve or set session data.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Laravel PHP Framework Interview Questions

Write down the name of some aggregates methods provided by the laravel's query builder.

1 Answers  


What do you mean by eloquent used in laravel 5?

1 Answers  


Explain the service container and its advantages.

1 Answers  


What is mvc in php laravel?

1 Answers  


What is a Artisan command ?

1 Answers  


How to use basic routing in laravel?

1 Answers  


what is meant by CSRF Protection in Laravel ?

2 Answers  


What is laracasts?

1 Answers  


How can we configure a mail-in laravel?

1 Answers  


What do you know about php artisan? Mention some artisan command.

1 Answers  


What is laravel spark?

1 Answers  


List the steps to configure laravel application.

1 Answers  


Categories