protected function registerErrorStore() { $this->app['adamwathan.form.errorstore'] = $this->app->share(function ($app) { return new IlluminateErrorStore($app['session.store']); }); }