app/Http/Controllers/CcrController.php
/**
     * Download file the specified resource.
     *
     * @param  \App\Models\Ccr  $ccr
     * @return \Illuminate\Http\Response
     */
Download file the specified resource.
Download file the specified resource .
public function file(Ccr $ccr)
    {
        try {
    		return response()->download(Storage_path('app/public/berkas/ccr/'.$ccr->file));
    	} catch (\Exception $e) {
    		return abort('404');
    	}
    }
public function file ( Ccr $ ccr ) { try { return response ( ) -> download ( Storage_path ( 'app/public/berkas/ccr/' . $ ccr -> file ) ) ; } catch ( \ Exception $ e ) { return abort ( '404' ) ; } }
Download file the specified resource.
Download file the specified resource .