public function view($id)
    {
        $file = LocalFile::getByIdentifier($id);

        $response = response($file->getContents(), 200)->withHeaders([
            'Content-Type'  => $file->getFile()->getMimeType(),
            'Cache-Control' => 'max-age=86400, public',
            'Expires'       => Carbon::now()->addSeconds(86400)->format('D, d M Y H:i:s \G\M\T')
        ]);
        return $response;
    }