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 | | 2686 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 | | 8702 Viewer | Category : Laravel
READ MORE

    Laravel 5 client side validation using Parsley.js example

    Laravel 5 client side validation using Parsley.js example

    Open Post

    How to integrate paypal payment gateway with laravel 5.4

    How to integrate paypal payment gateway with laravel 5.4

    Open Post

    MySql comma separated column join in PHP Laravel 5

    MySql comma separated column join in PHP Laravel 5

    Open Post

    Laravel 5 custom pagination view example

    Laravel 5 custom pagination view example

    Open Post

    How to implement infinite ajax scroll pagination in Laravel 5?

    How to implement infinite ajax scroll pagination in Laravel 5?

    Open Post

    Laravel 5.3 - Customize pagination templates example from scratch

    Laravel 5.3 - Customize pagination templates example from scratch

    Open Post