LaravelPackages.net
Acme Inc.
Toggle sidebar
ahrasel/laravel-backup

Laravel backup package

8
0
v1.1.0
About ahrasel/laravel-backup

ahrasel/laravel-backup is a Laravel package for laravel backup package. It currently has 0 GitHub stars and 8 downloads on Packagist (latest version v1.1.0). Install it with composer require ahrasel/laravel-backup. Discover more Laravel packages by ahrasel or browse all Laravel packages to compare alternatives.

Last updated

Database Backup Package For Laravel

Introduction

The Database Backup Laravel Package is a convenient solution for backing up MySQL and PostgreSQL databases in a Laravel application. It provides a simple endpoint /database-backup to trigger the backup process.

Installation

  1. Install the package using Composer:

    composer require ahrasel/laravel-backup
    
  2. Register the BackupServiceProvider in your config/app.php:

    'providers' => [
        // ...
         Ahrasel\LaravelBackup\BackupServiceProvider::class,
    ],
    

Configuration

The package comes with default configurations. If you need to customize the configuration, publish the configuration file using the following command:

php artisan vendor:publish --provider=" Ahrasel\LaravelBackup\BackupServiceProvider" --tag="config"

This will create a backup.php file in your config directory.

Usage

Once installed and configured, you can trigger a database backup by hitting the /database-backup endpoint in your Laravel application.

Example:

http://localhost:8000/database-backup

You can also integrate this endpoint into your application as needed, for example, by creating a scheduled task to run the backup at specific intervals.

License

This Laravel package is open-sourced software licensed under the MIT license.

Issues and Contributions

If you encounter any issues or have suggestions for improvements, feel free to open an issue on the GitHub repository.

Happy coding!

Comments