Hi guys, in this tutorial, i’ll show you how to easily manage backups of your laravel application with possibility to restore any backup, and also schedule automatic backup with cron job. let’s dive in.

 

Step 1 : Add PclZip library

PclZip is a PHP library that manage ZIP archives. We have to add it in our project, so create Libraries folder inside App/ folder.
Create file inApp/Libraries/pclzip.php and put the following code :