承接 sextanet/migrate-shield 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

sextanet/migrate-shield

最新稳定版本:0.0.2

Composer 安装命令:

composer require sextanet/migrate-shield

包简介

This is my package migrate-shield

README 文档

README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

Protects your production environment by backing up your database

It uses Spatie's Laravel Backup behind the scenes.

Installation

You can install the package via composer:

composer require sextanet/migrate-shield

Usage

Simply, use your traditional commands in production mode

php artisan migrate:fresh # --seed

You will get covered and intercepted with Shield

Configuration

By default, it works inmediately with zero config. But also, you can customize some things in your .env file

MIGRATE_SHIELD_DISK=local
MIGRATE_SHIELD_PASSWORD="YOURPASSWORD"

Optionally, you can publish the config file with:

php artisan vendor:publish --tag="migrate-shield-config"

Troubleshooting

If have your mysqldump or pg_dump in another location, you need to add dump binary path

Source: https://spatie.be/docs/laravel-backup/v8/installation-and-setup

//config/database.php

'connections' => [
    'mysql' => [
        'driver' => 'mysql'
        // (...),
        'dump' => [
            'dump_binary_path' => env('MYSQL_DUMP_BINARY_PATH', null), // only the path, so without `mysqldump` or `pg_dump`
            'timeout' => env('MYSQL_DUMP_TIMEOUT', 60 * 5), // 5 minutes timuout
        ],
    ]
],

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-01-25