PHP code example of dyanakiev-forks / laravel-backup-panel

1. Go to this page and download the library: Download dyanakiev-forks/laravel-backup-panel library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

dyanakiev-forks / laravel-backup-panel example snippets


'path' => 'backup',

'queue' => 'dedicated_low_priority_queue',

/**
 * Register the Laravel Backup Panel gate.
 *
 * This gate determines who can access Laravel Backup Panel in non-local environments.
 *
 * @return void
 */
protected function gate()
{
    Gate::define('viewLaravelBackupPanel', function ($user) {
        return in_array($user->email, [
            '[email protected]',
        ]);
    });
}
bash
$ php artisan laravel-backup-panel:install
bash
$ php artisan vendor:publish --tag=laravel-backup-panel-assets --force
$ php artisan vendor:publish --tag=laravel-backup-panel-views --force