public function download($as = null) { return $this->createResponse()->header('Content-Disposition', 'attachment; ' . $this->getAs($as)); }