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 | | 5917 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 | | 33886 Viewer | Category : Laravel
READ MORE

    Laravel 5 - How to create custom error page with example

    Laravel 5 - How to create custom error page with example

    Open Post

    Laravel 5.3 - import export csv and excel file into database

    Laravel 5.3 - import export csv and excel file into database

    Open Post

    PHP Laravel 5 - Sub-domain routing file Example

    PHP Laravel 5 - Sub-domain routing file Example

    Open Post

    Laravel 5 amazon s3 file upload tutorial - Part 1

    Laravel 5 amazon s3 file upload tutorial - Part 1

    Open Post

    Laravel 5.4 New Feature - Add new Components & Slots in Blade Template

    Laravel 5.4 New Feature - Add new Components & Slots in Blade Template

    Open Post

    Laravel 5 and Vue JS CRUD with Pagination example and demo from scratch

    Laravel 5 and Vue JS CRUD with Pagination example and demo from scratch

    Open Post