Tag : Zip


Laravel 5 - multiple files download with response example

If you need to give to download multiple files response from out application. If you require to give download only on file then you can do it easily like this way: <pre class="prettyprint lang-php"> return response()->download(public_path('myimage.jpg')); </pre> But if you need to give multiple images files or docs etc then you can't do it this way: <pre class="prettyprint lang-php"> return response()->download([public_path('myimage.jpg'),public_path('myimage2.jpg')]); </pre> But you must have to create single zip file or something. So first you need to use zipper package, i added zipp.....

By Hardik Savani | May 14, 2016 | | 9873 Viewer | Category : Laravel
READ MORE

Laravel 5 create and download zip file example using chumper/zipper composer package

Sometimes, we need to create file of our project directory and give to download that zip file to users. we are always prefer zip file because it is very safe and secure from virus. If you want to generate zip file and donwload that file in your laravel 5 application then you do it easily using chumper/zipper composer package. In this post i give you example to create zip file and donwload from scratch. So first we have to follow bellow step for install package. First fire following command on your terminal. <strong>Installation Package</strong> <pre>composer require chumper/zipper</pre> After.....

By Hardik Savani | May 10, 2016 | | 50349 Viewer | Category : Laravel
READ MORE

    How to install composer using command line in ubuntu ?

    How to install composer using command line in ubuntu ?

    Open Post

    Bootstrap progress bar animate example using bootstrap-progressbar.js

    Bootstrap progress bar animate example using bootstrap-progressbar.js

    Open Post

    Laravel 5 - Paypal Payment Integration example using netshell/paypal package from scratch

    Laravel 5 - Paypal Payment Integration example using netshell/paypal package from scratch

    Open Post

    Paypal payment gateway integration in php source code example

    Paypal payment gateway integration in php source code example

    Open Post

    AngularJS - How to render HTML value in ng-repeat ?

    AngularJS - How to render HTML value in ng-repeat ?

    Open Post

    PHP MySQL - Simple Image Gallery CRUD example from scratch

    PHP MySQL - Simple Image Gallery CRUD example from scratch

    Open Post