public function export_action($id) { $this->table = FleximportTable::find($id); if (Request::option("secret") !== $this->table->getExportSecret()) { throw new AccessDeniedException(); } $this->table->fetchData(); $this->render_csv(); }