### Install Filament Spatie Laravel Backup via Composer Source: https://github.com/shuvroroy/filament-spatie-laravel-backup/blob/main/README.md Installs the package using Composer. This is the primary method to add the package to your Laravel project, ensuring all dependencies are managed. ```bash composer require shuvroroy/filament-spatie-laravel-backup ``` -------------------------------- ### Publish Plugin Assets using Artisan Command (Shell) Source: https://github.com/shuvroroy/filament-spatie-laravel-backup/blob/main/UPGRADE.md Executes the Artisan command to publish the plugin's assets, ensuring all necessary frontend files are available for the backup interface. This is a standard step after updating or installing Filament plugins. ```shell php artisan filament:assets ``` -------------------------------- ### Update FilamentSpatieLaravelBackupPlugin Configuration (PHP) Source: https://github.com/shuvroroy/filament-spatie-laravel-backup/blob/main/UPGRADE.md Illustrates the updated method for configuring the `FilamentSpatieLaravelBackupPlugin` in Filament v3.x, replacing older configuration file options. It shows how to set the page, queue, polling interval, and status list visibility using fluent method calls. ```php plugin( FilamentSpatieLaravelBackupPlugin::make() ->usingPage(Backups::class) ->usingQueue('my-queue') ->usingPolingInterval('10s') // default value is 4s ->statusListRecordsTable(false) // default value is true ); } } ``` -------------------------------- ### Register FilamentSpatieLaravelBackupPlugin in AdminPanelProvider (PHP) Source: https://github.com/shuvroroy/filament-spatie-laravel-backup/blob/main/UPGRADE.md Demonstrates how to register the `FilamentSpatieLaravelBackupPlugin` within your Filament v3.x `AdminPanelProvider`. This step is crucial for integrating the backup functionality into your Filament application. ```php plugin(FilamentSpatieLaravelBackupPlugin::make()); } } ``` -------------------------------- ### Run Tests Source: https://github.com/shuvroroy/filament-spatie-laravel-backup/blob/main/README.md Executes the project's test suite using Composer. This command is typically used to verify the functionality and stability of the backup plugin. ```bash composer test ``` -------------------------------- ### Publish Filament Assets Source: https://github.com/shuvroroy/filament-spatie-laravel-backup/blob/main/README.md Publishes Filament's necessary assets to your project. This command ensures that Filament's UI components, including those for this backup plugin, are correctly integrated and accessible. ```bash php artisan filament:assets ``` -------------------------------- ### Publish Package Translations Source: https://github.com/shuvroroy/filament-spatie-laravel-backup/blob/main/README.md Publishes the translation files for the Filament Spatie Laravel Backup package. This allows for localization of the package's UI elements, enabling you to customize or translate strings. ```bash php artisan vendor:publish --tag="filament-spatie-backup-translations" ``` -------------------------------- ### Extend Filament Backups Page Source: https://github.com/shuvroroy/filament-spatie-laravel-backup/blob/main/README.md Extends the default Backups page provided by the package to customize its appearance. You can override properties like `navigationIcon` and methods like `getHeading` to tailor the page to your application's design. ```php plugin( FilamentSpatieLaravelBackupPlugin::make() ->usingPage(Backups::class) ); } } ``` -------------------------------- ### Register Filament Spatie Laravel Backup Plugin Source: https://github.com/shuvroroy/filament-spatie-laravel-backup/blob/main/README.md Registers the Filament Spatie Laravel Backup plugin within your Filament PanelProvider. This makes the backup page available in your Filament admin panel by calling the plugin's make() method. ```php plugin(FilamentSpatieLaravelBackupPlugin::make()); } } ``` -------------------------------- ### Authorize Access to Backups Page Source: https://github.com/shuvroroy/filament-spatie-laravel-backup/blob/main/README.md Restricts access to the `Backups` page by implementing an `authorize` method within the plugin configuration. The method should return a boolean indicating user authorization. ```php plugin( FilamentSpatieLaravelBackupPlugin::make() ->authorize(fn (): bool => auth()->user()->email === 'admin@example.com'), ); } } ``` -------------------------------- ### Customise Queue Name Source: https://github.com/shuvroroy/filament-spatie-laravel-backup/blob/main/README.md Customizes the queue name used for backup operations via the `usingQueue()` method. This allows you to specify a particular queue for handling backup jobs, overriding the default behavior. ```php plugin( FilamentSpatieLaravelBackupPlugin::make() ->usingQueue('my-queue') // default value is null ); } } ``` -------------------------------- ### Customize Backup Timeout (Default) Source: https://github.com/shuvroroy/filament-spatie-laravel-backup/blob/main/README.md Sets a custom timeout duration for the backup job using the `timeout()` method. The default value is derived from php.ini's max_execution_time or 30s if it wasn't defined. ```php plugin( FilamentSpatieLaravelBackupPlugin::make() ->timeout(120) // default value is max_execution_time from php.ini, or 30s if it wasn't defined ); } } ``` -------------------------------- ### Customise Polling Interval Source: https://github.com/shuvroroy/filament-spatie-laravel-backup/blob/main/README.md Customizes the polling interval for the Backups page using the `usingPolingInterval()` method. This controls how frequently the page refreshes to check for backup status updates. The default value is '4s'. ```php plugin( FilamentSpatieLaravelBackupPlugin::make() ->usingPolingInterval('10s') // default value is 4s ); } } ``` -------------------------------- ### Disable Backup Timeout Source: https://github.com/shuvroroy/filament-spatie-laravel-backup/blob/main/README.md Disables the timeout for the backup job, allowing it to run indefinitely until completion. This is achieved by calling the `noTimeout()` method on the plugin. ```php plugin( FilamentSpatieLaravelBackupPlugin::make() ->noTimeout() ); } } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.