Support the ongoing development of Laravel.io →
Requests Input Database

How can i view the data here please help thanks.


        public function showpdf($fsr_num)
        {       
            $filename = Fsr::where('fsr_num', $fsr_num)->first();
     
            $pdf_file = Input::get('pdf_file');
            $filename = $pdf_file;
            $path = storage_path($filename);
     
            return Response::make(file_get_contents($path), 200, [
                'Content-Type' => 'application/pdf',
                'Content-Disposition' => 'inline; filename="'.$filename.'"'
            ]);
        }
            

Last updated 3 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

taneoboy taneoboy Joined 6 Feb 2016

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.