Database Backup
, (*1)
Uncomplicated database backup package for Laravel 5., (*2)
Installation
Composer
From the command line run:, (*3)
$ composer require torann/database-backup
Laravel
Once installed you need to register the service provider with the application. Open up config/app.php
and find the providers
key., (*4)
``` php
'providers' => [, (*5)
Torann\DatabaseBackup\DatabaseBackupServiceProvider::class,
], (*6)
### Lumen
For Lumen register the service provider in `bootstrap/app.php`.
``` php
$app->register(Torann\DatabaseBackup\DatabaseBackupServiceProvider::class);
Publish the configurations
Run this on the command line from the root of your project:, (*7)
$ php artisan vendor:publish --provider="Torann\DatabaseBackup\DatabaseBackupServiceProvider" --tag=config
A configuration file will be publish to config/database-backups.php
., (*8)
Commands
php artisan db:backup
Dump the default database., (*9)
Change Log
v0.1.0