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.'"'
]);
}
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community