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;
    }
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;
    }
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 ; }
Attempt to render the specified file.

@param  int  $id
@return \Illuminate\Http\Response
Attempt to render the specified file .