Looking to hire Laravel developers? Try LaraJobs

filament-spatie-laravel-backup maintained by ramdank

Description
This plugin is built on top of Spatie's Laravel-backup package
Author
Last update
2023/03/16 19:42 (dev-main)
License
Downloads
9

Comments
comments powered by Disqus

Filament Spatie Laravel Backup

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

This package provides a Filament page that you can create backup of your application. You'll find installation instructions and full documentation on spatie/laravel-backup.

Backups - Filament Demo

Installation

You can install the package via composer:

composer require shuvroroy/filament-spatie-laravel-backup

You can publish the config file with:

php artisan vendor:publish --tag="filament-spatie-backup-config"

This is the contents of the published config file:

return [

    /*
    |--------------------------------------------------------------------------
    | Pages
    |--------------------------------------------------------------------------
    |
    | This is the configuration for the general appearance of the page
    | in admin panel.
    |
    */

    'pages' => [
        'backups' => \ShuvroRoy\FilamentSpatieLaravelBackup\Pages\Backups::class
    ],

    /*
    |--------------------------------------------------------------------------
    | Polling
    |--------------------------------------------------------------------------
    |
    | This is the configuration for the interval seconds between
    | polling requests.
    |
    */

    'polling' => [
        'interval' => '4s'
    ],

    /*
    |--------------------------------------------------------------------------
    | Queue
    |--------------------------------------------------------------------------
    |
    | Queue to use for the jobs to run through.
    |
    */

    'queue' => null,

];

You can publish the lang file with:

php artisan vendor:publish --tag="filament-spatie-backup-translations"

Usage

This package will automatically register the Backups. You'll be able to see it when you visit your Filament admin panel.

Customising the polling interval

You can customise the polling interval for the Backups by publishing the configuration file and updating the polling.interval value.

Customising the queue

You can customise the queue name for the Backups by publishing the configuration file and updating the queue value.

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.