Download file from storage folder

  • STEP
    
                            $headers = [
                                'Content-Type' => 'application/pdf',
                            ];
                            $orders=Orders::find($id);
                            $path = storage_path().'/'.'app'.'/public/'.$orders->invoice_pdf;
                            if (file_exists($path)) {
                                return Response()->download($path,$orders->invoice_pdf,$headers);
                            }