Set session on form builder.

This commit is contained in:
Taylor Otwell committed 2013-03-18 21:59:47 -05:00
1 parent db281db642
commit 66c2d1d006
1 file changed
+5 -1
+5 -1
View File
@@ -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;
}); });
} }