Getting the Session Store

Problem

You want to access the session implementation used by the Form facade.

Solution

Use the Form::getSessionStore() method.

$session = Form::getSessionStore();

Discussion

Generally this is not needed.

You can access the Session facade directly. But if you have a complicated application with different session handlers for different parts of your application, Laravel provides this method.

comments powered by Disqus