Skip to content

Instantly share code, notes, and snippets.

@mostafa6765
Created September 23, 2017 20:23
Show Gist options
  • Save mostafa6765/121c6377c207813a5255a63c26140f29 to your computer and use it in GitHub Desktop.
Save mostafa6765/121c6377c207813a5255a63c26140f29 to your computer and use it in GitHub Desktop.
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class DbbController extends Controller
{
public function index()
{
$zipper = new \Chumper\Zipper\Zipper;
$files = glob(public_path('js/*'));
$zipper->make(base_path('zipper/lara-master.zip'))->add($files);
$zipper->make(base_path('zipper/lara-master.zip'))->extractTo(base_path('zipper/lara-master'));
$zipper->close();
dd('done boss!!!');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment