public function __construct(Application $app) { $this->app = $app; $this->setFlashMessage($app); $this->input = Request::createFromGlobals(); $this->data['token'] = Token::generate(); $this->data['current_user'] = $this->currentUser(); // $this->app['csrf']->setInput($this->input); $this->setCsrfInput($this->input); }