1. Go to this page and download the library: Download blalmal10a/db-archive 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/ */
blalmal10a / db-archive example snippets
use Spatie\Permission\Traits\HasRoles;
class User extends Authenticatable
{
use HasRoles;
}
// Disable role checks entirely
' any set you want
'ddleware_group' => ['web'], // no auth middleware — accessible to all
// Or use your own custom middleware group
'middleware_group' => ['web', 'auth', 'custom-backup-guard'],
namespace App\Http\Controllers;
use Blalmal10a\DbArchive\Http\Controllers\BackupController as BaseBackupController;
class MyBackupController extends BaseBackupController
{
// override any method
}