ahrasel/laravel-backup 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ahrasel/laravel-backup

最新稳定版本:v1.1.0

Composer 安装命令:

composer require ahrasel/laravel-backup

包简介

Laravel backup package

README 文档

README

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!

统计信息

  • 总下载量: 8
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-01-28