Set session on form builder.
This commit is contained in:
1 parent
db281db642
commit
66c2d1d006
1 file changed
+5
-1
@@ -20,7 +20,11 @@ class HtmlServiceProvider extends ServiceProvider {
|
|||||||
{
|
{
|
||||||
$this->app['form'] = $this->app->share(function($app)
|
$this->app['form'] = $this->app->share(function($app)
|
||||||
{
|
{
|
||||||
return new FormBuilder($app['url'], $app['session']->getToken());
|
$form = new FormBuilder($app['url'], $app['session']->getToken());
|
||||||
|
|
||||||
|
$form->setSessionStore($app['session']);
|
||||||
|
|
||||||
|
return $form;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user