Commit a2f4e2b8 by lujunyi

菜单权限备份

parent 6c672055
......@@ -2,6 +2,8 @@
namespace Database\Seeders;
use DB;
use Dcat\Admin\Models;
use Illuminate\Database\Seeder;
class AdminTablesSeeder extends Seeder
......@@ -11,5 +13,820 @@ class AdminTablesSeeder extends Seeder
*
* @return void
*/
public function run() {}
public function run()
{
// base tables
Models\Menu::truncate();
Models\Menu::insert(
[
[
'id' => 1,
'parent_id' => 0,
'order' => 1,
'title' => '首页',
'icon' => 'feather icon-bar-chart-2',
'uri' => '/',
'extension' => '',
'show' => 1,
'created_at' => '2024-11-03 02:13:11',
'updated_at' => '2024-11-03 23:16:45',
],
[
'id' => 2,
'parent_id' => 0,
'order' => 2,
'title' => '权限管理',
'icon' => 'feather icon-settings',
'uri' => null,
'extension' => '',
'show' => 1,
'created_at' => '2024-11-03 02:13:11',
'updated_at' => '2024-11-03 23:17:26',
],
[
'id' => 3,
'parent_id' => 2,
'order' => 3,
'title' => '管理员',
'icon' => null,
'uri' => 'auth/users',
'extension' => '',
'show' => 1,
'created_at' => '2024-11-03 02:13:11',
'updated_at' => '2024-11-03 23:17:37',
],
[
'id' => 4,
'parent_id' => 2,
'order' => 4,
'title' => '角色',
'icon' => null,
'uri' => 'auth/roles',
'extension' => '',
'show' => 1,
'created_at' => '2024-11-03 02:13:11',
'updated_at' => '2024-11-03 23:17:42',
],
[
'id' => 5,
'parent_id' => 2,
'order' => 5,
'title' => '权限',
'icon' => null,
'uri' => 'auth/permissions',
'extension' => '',
'show' => 1,
'created_at' => '2024-11-03 02:13:11',
'updated_at' => '2024-11-03 23:17:47',
],
[
'id' => 6,
'parent_id' => 2,
'order' => 6,
'title' => '菜单',
'icon' => null,
'uri' => 'auth/menu',
'extension' => '',
'show' => 1,
'created_at' => '2024-11-03 02:13:11',
'updated_at' => '2024-11-03 23:17:52',
],
[
'id' => 7,
'parent_id' => 2,
'order' => 7,
'title' => '扩展',
'icon' => null,
'uri' => 'auth/extensions',
'extension' => '',
'show' => 1,
'created_at' => '2024-11-03 02:13:11',
'updated_at' => '2024-11-03 23:17:57',
],
[
'id' => 8,
'parent_id' => 2,
'order' => 8,
'title' => '操作日志',
'icon' => 'fa-500px',
'uri' => 'auth/operation-logs',
'extension' => 'dcat-admin.operation-log',
'show' => 1,
'created_at' => '2024-11-03 02:13:40',
'updated_at' => '2024-11-03 23:18:36',
],
]
);
Models\Permission::truncate();
Models\Permission::insert(
[
[
'id' => 1,
'name' => '权限管理',
'slug' => 'auth-management',
'http_method' => '',
'http_path' => '',
'order' => 1,
'parent_id' => 0,
'created_at' => '2024-11-03 02:13:11',
'updated_at' => '2024-11-03 23:19:08',
],
[
'id' => 2,
'name' => '管理员',
'slug' => 'users',
'http_method' => '',
'http_path' => '/auth/users*',
'order' => 2,
'parent_id' => 1,
'created_at' => '2024-11-03 02:13:11',
'updated_at' => '2024-11-03 23:19:14',
],
[
'id' => 3,
'name' => '角色',
'slug' => 'roles',
'http_method' => '',
'http_path' => '/auth/roles*',
'order' => 3,
'parent_id' => 1,
'created_at' => '2024-11-03 02:13:11',
'updated_at' => '2024-11-03 23:19:19',
],
[
'id' => 4,
'name' => '权限',
'slug' => 'permissions',
'http_method' => '',
'http_path' => '/auth/permissions*',
'order' => 4,
'parent_id' => 1,
'created_at' => '2024-11-03 02:13:11',
'updated_at' => '2024-11-03 23:19:24',
],
[
'id' => 5,
'name' => '菜单',
'slug' => 'menu',
'http_method' => '',
'http_path' => '/auth/menu*',
'order' => 5,
'parent_id' => 1,
'created_at' => '2024-11-03 02:13:11',
'updated_at' => '2024-11-03 23:19:30',
],
[
'id' => 6,
'name' => '扩展',
'slug' => 'extension',
'http_method' => '',
'http_path' => '/auth/extensions*',
'order' => 6,
'parent_id' => 1,
'created_at' => '2024-11-03 02:13:11',
'updated_at' => '2024-11-03 23:19:35',
],
[
'id' => 7,
'name' => '操作日志',
'slug' => 'auth.operationlog',
'http_method' => '',
'http_path' => 'auth/operation-logs*',
'order' => 7,
'parent_id' => 1,
'created_at' => '2024-11-03 23:20:09',
'updated_at' => '2024-11-03 23:20:22',
],
]
);
Models\Role::truncate();
Models\Role::insert(
[
[
'id' => 1,
'name' => 'Administrator',
'slug' => 'administrator',
'created_at' => '2024-11-03 02:13:11',
'updated_at' => '2024-11-03 02:13:11',
],
]
);
Models\Setting::truncate();
Models\Setting::insert(
[
[
'slug' => 'guanguans:dcat-login-captcha',
'value' => '{"length":4,"charset":"abcdefghijklmnpqrstuvwxyz23456789ABCDEFGHIJKLMNOPQRSTUVWXYZ","width":150,"height":43,"type":"png","font":null,"fingerprint":null,"captcha_phrase_session_key":"login_captcha_phrase"}',
'created_at' => '2024-11-03 02:13:44',
'updated_at' => '2024-11-03 02:13:44',
],
]
);
Models\Extension::truncate();
Models\Extension::insert(
[
[
'id' => 1,
'name' => 'dcat-admin.operation-log',
'version' => '1.0.0',
'is_enabled' => 1,
'options' => null,
'created_at' => '2024-11-03 02:13:40',
'updated_at' => '2024-11-03 02:13:45',
],
[
'id' => 2,
'name' => 'guanguans.dcat-login-captcha',
'version' => '1.1.0',
'is_enabled' => 1,
'options' => null,
'created_at' => '2024-11-03 02:13:41',
'updated_at' => '2024-11-03 02:13:44',
],
[
'id' => 3,
'name' => 'sparkinzy.dcat-viewer',
'version' => '1.0.3',
'is_enabled' => 1,
'options' => null,
'created_at' => '2024-11-03 02:13:42',
'updated_at' => '2024-11-03 02:13:43',
],
]
);
Models\ExtensionHistory::truncate();
Models\ExtensionHistory::insert(
[
[
'id' => 1,
'name' => 'dcat-admin.operation-log',
'type' => 2,
'version' => '1.0.0',
'detail' => 'create_opration_log_table.php',
'created_at' => '2024-11-03 02:13:40',
'updated_at' => '2024-11-03 02:13:40',
],
[
'id' => 2,
'name' => 'dcat-admin.operation-log',
'type' => 1,
'version' => '1.0.0',
'detail' => 'Initialize extension.',
'created_at' => '2024-11-03 02:13:40',
'updated_at' => '2024-11-03 02:13:40',
],
[
'id' => 3,
'name' => 'guanguans.dcat-login-captcha',
'type' => 1,
'version' => '1.0.0',
'detail' => 'Initial release.',
'created_at' => '2024-11-03 02:13:41',
'updated_at' => '2024-11-03 02:13:41',
],
[
'id' => 4,
'name' => 'guanguans.dcat-login-captcha',
'type' => 1,
'version' => '1.0.1',
'detail' => 'Add default config file.',
'created_at' => '2024-11-03 02:13:41',
'updated_at' => '2024-11-03 02:13:41',
],
[
'id' => 5,
'name' => 'guanguans.dcat-login-captcha',
'type' => 1,
'version' => '1.0.1',
'detail' => 'Add annotation for facades.',
'created_at' => '2024-11-03 02:13:41',
'updated_at' => '2024-11-03 02:13:41',
],
[
'id' => 6,
'name' => 'guanguans.dcat-login-captcha',
'type' => 1,
'version' => '1.0.1',
'detail' => 'Optimize `login_captcha_check` function.',
'created_at' => '2024-11-03 02:13:41',
'updated_at' => '2024-11-03 02:13:41',
],
[
'id' => 7,
'name' => 'guanguans.dcat-login-captcha',
'type' => 1,
'version' => '1.0.1',
'detail' => 'Optimize captcha generate.',
'created_at' => '2024-11-03 02:13:41',
'updated_at' => '2024-11-03 02:13:41',
],
[
'id' => 8,
'name' => 'guanguans.dcat-login-captcha',
'type' => 1,
'version' => '1.0.1',
'detail' => 'Optimize get setting config.',
'created_at' => '2024-11-03 02:13:41',
'updated_at' => '2024-11-03 02:13:41',
],
[
'id' => 9,
'name' => 'guanguans.dcat-login-captcha',
'type' => 1,
'version' => '1.0.1',
'detail' => 'Rename `dcat_login_captcha_check`->`login_captcha_check`.',
'created_at' => '2024-11-03 02:13:41',
'updated_at' => '2024-11-03 02:13:41',
],
[
'id' => 10,
'name' => 'guanguans.dcat-login-captcha',
'type' => 1,
'version' => '1.0.1',
'detail' => 'Rename `dcat_login_captcha_url`->`login_captcha_url`.',
'created_at' => '2024-11-03 02:13:41',
'updated_at' => '2024-11-03 02:13:41',
],
[
'id' => 11,
'name' => 'guanguans.dcat-login-captcha',
'type' => 1,
'version' => '1.0.2',
'detail' => 'Add login_captcha_get function.',
'created_at' => '2024-11-03 02:13:41',
'updated_at' => '2024-11-03 02:13:41',
],
[
'id' => 12,
'name' => 'guanguans.dcat-login-captcha',
'type' => 1,
'version' => '1.0.2',
'detail' => 'Update lang files.',
'created_at' => '2024-11-03 02:13:41',
'updated_at' => '2024-11-03 02:13:41',
],
[
'id' => 13,
'name' => 'guanguans.dcat-login-captcha',
'type' => 1,
'version' => '1.0.2',
'detail' => 'Update extension alias and description.',
'created_at' => '2024-11-03 02:13:41',
'updated_at' => '2024-11-03 02:13:41',
],
[
'id' => 14,
'name' => 'guanguans.dcat-login-captcha',
'type' => 1,
'version' => '1.0.2',
'detail' => 'Optimize LoginCaptchaServiceProvider.',
'created_at' => '2024-11-03 02:13:41',
'updated_at' => '2024-11-03 02:13:41',
],
[
'id' => 15,
'name' => 'guanguans.dcat-login-captcha',
'type' => 1,
'version' => '1.0.2',
'detail' => 'Optimize setting form.',
'created_at' => '2024-11-03 02:13:41',
'updated_at' => '2024-11-03 02:13:41',
],
[
'id' => 16,
'name' => 'guanguans.dcat-login-captcha',
'type' => 1,
'version' => '1.0.3',
'detail' => 'Add CleanObContents Middleware.',
'created_at' => '2024-11-03 02:13:41',
'updated_at' => '2024-11-03 02:13:41',
],
[
'id' => 17,
'name' => 'guanguans.dcat-login-captcha',
'type' => 1,
'version' => '1.0.4',
'detail' => 'Add SetResponseContentType Middleware.',
'created_at' => '2024-11-03 02:13:41',
'updated_at' => '2024-11-03 02:13:41',
],
[
'id' => 18,
'name' => 'guanguans.dcat-login-captcha',
'type' => 1,
'version' => '1.0.4',
'detail' => 'Add content type setting config.',
'created_at' => '2024-11-03 02:13:41',
'updated_at' => '2024-11-03 02:13:41',
],
[
'id' => 19,
'name' => 'guanguans.dcat-login-captcha',
'type' => 1,
'version' => '1.0.5',
'detail' => 'Add BootingHandler.',
'created_at' => '2024-11-03 02:13:41',
'updated_at' => '2024-11-03 02:13:41',
],
[
'id' => 20,
'name' => 'guanguans.dcat-login-captcha',
'type' => 1,
'version' => '1.0.6',
'detail' => 'Rename src/BootingAdmin.php -> src/BootingHandler.php.',
'created_at' => '2024-11-03 02:13:41',
'updated_at' => '2024-11-03 02:13:41',
],
[
'id' => 21,
'name' => 'guanguans.dcat-login-captcha',
'type' => 1,
'version' => '1.0.6',
'detail' => 'Remove src/Http/Controllers/CaptchaController.php`.',
'created_at' => '2024-11-03 02:13:41',
'updated_at' => '2024-11-03 02:13:41',
],
[
'id' => 22,
'name' => 'guanguans.dcat-login-captcha',
'type' => 1,
'version' => '1.0.7',
'detail' => 'Optimize `buildCaptchaJsScript`.',
'created_at' => '2024-11-03 02:13:41',
'updated_at' => '2024-11-03 02:13:41',
],
[
'id' => 23,
'name' => 'guanguans.dcat-login-captcha',
'type' => 1,
'version' => '1.0.8',
'detail' => 'Fix cant match routing path(#8).',
'created_at' => '2024-11-03 02:13:41',
'updated_at' => '2024-11-03 02:13:41',
],
[
'id' => 24,
'name' => 'guanguans.dcat-login-captcha',
'type' => 1,
'version' => '1.0.9',
'detail' => 'Add parameters to the `SetResponseContentType` middleware.',
'created_at' => '2024-11-03 02:13:41',
'updated_at' => '2024-11-03 02:13:41',
],
[
'id' => 25,
'name' => 'guanguans.dcat-login-captcha',
'type' => 1,
'version' => '1.0.9',
'detail' => 'Update github config files.',
'created_at' => '2024-11-03 02:13:41',
'updated_at' => '2024-11-03 02:13:41',
],
[
'id' => 26,
'name' => 'guanguans.dcat-login-captcha',
'type' => 1,
'version' => '1.0.9',
'detail' => 'Update phpunit/phpunit requirement from ^7.0 || ^8.0 to ^7.0 || ^8.0 || ^9.0.',
'created_at' => '2024-11-03 02:13:41',
'updated_at' => '2024-11-03 02:13:41',
],
[
'id' => 27,
'name' => 'guanguans.dcat-login-captcha',
'type' => 1,
'version' => '1.0.9',
'detail' => 'Optimize booting `BootingHandler`.',
'created_at' => '2024-11-03 02:13:41',
'updated_at' => '2024-11-03 02:13:41',
],
[
'id' => 28,
'name' => 'guanguans.dcat-login-captcha',
'type' => 1,
'version' => '1.0.9',
'detail' => 'Optimize setting form .',
'created_at' => '2024-11-03 02:13:41',
'updated_at' => '2024-11-03 02:13:41',
],
[
'id' => 29,
'name' => 'guanguans.dcat-login-captcha',
'type' => 1,
'version' => '1.0.10',
'detail' => 'Compatible callback type.',
'created_at' => '2024-11-03 02:13:41',
'updated_at' => '2024-11-03 02:13:41',
],
[
'id' => 30,
'name' => 'guanguans.dcat-login-captcha',
'type' => 1,
'version' => '1.0.11',
'detail' => 'Rename `phrase_session_key` -> `captcha_phrase_session_key`.',
'created_at' => '2024-11-03 02:13:41',
'updated_at' => '2024-11-03 02:13:41',
],
[
'id' => 31,
'name' => 'guanguans.dcat-login-captcha',
'type' => 1,
'version' => '1.0.11',
'detail' => 'Generate captcha random url.',
'created_at' => '2024-11-03 02:13:41',
'updated_at' => '2024-11-03 02:13:41',
],
[
'id' => 32,
'name' => 'guanguans.dcat-login-captcha',
'type' => 1,
'version' => '1.0.11',
'detail' => 'Replace `Closure routing` -> `CaptchaController`.',
'created_at' => '2024-11-03 02:13:41',
'updated_at' => '2024-11-03 02:13:41',
],
[
'id' => 33,
'name' => 'guanguans.dcat-login-captcha',
'type' => 1,
'version' => '1.0.11',
'detail' => 'Bump actions/cache from 2 to 3.',
'created_at' => '2024-11-03 02:13:41',
'updated_at' => '2024-11-03 02:13:41',
],
[
'id' => 34,
'name' => 'guanguans.dcat-login-captcha',
'type' => 1,
'version' => '1.0.11',
'detail' => 'Bump actions/checkout from 2 to 3.',
'created_at' => '2024-11-03 02:13:41',
'updated_at' => '2024-11-03 02:13:41',
],
[
'id' => 35,
'name' => 'guanguans.dcat-login-captcha',
'type' => 1,
'version' => '1.0.11',
'detail' => 'Update overtrue/phplint requirement from ^2.3 || ^3.0 to ^2.3 || ^3.0 || ^4.0.',
'created_at' => '2024-11-03 02:13:41',
'updated_at' => '2024-11-03 02:13:41',
],
[
'id' => 36,
'name' => 'guanguans.dcat-login-captcha',
'type' => 1,
'version' => '1.0.12',
'detail' => 'Bump codecov/codecov-action from 2.1.0 to 3.',
'created_at' => '2024-11-03 02:13:41',
'updated_at' => '2024-11-03 02:13:41',
],
[
'id' => 37,
'name' => 'guanguans.dcat-login-captcha',
'type' => 1,
'version' => '1.0.12',
'detail' => 'Update author info.',
'created_at' => '2024-11-03 02:13:41',
'updated_at' => '2024-11-03 02:13:41',
],
[
'id' => 38,
'name' => 'guanguans.dcat-login-captcha',
'type' => 1,
'version' => '1.0.13',
'detail' => 'Update JS.',
'created_at' => '2024-11-03 02:13:41',
'updated_at' => '2024-11-03 02:13:41',
],
[
'id' => 39,
'name' => 'guanguans.dcat-login-captcha',
'type' => 1,
'version' => '1.0.14',
'detail' => 'Rename login_captcha_get -> login_captcha_content.',
'created_at' => '2024-11-03 02:13:41',
'updated_at' => '2024-11-03 02:13:41',
],
[
'id' => 40,
'name' => 'guanguans.dcat-login-captcha',
'type' => 1,
'version' => '1.0.14',
'detail' => 'Update github config files.',
'created_at' => '2024-11-03 02:13:41',
'updated_at' => '2024-11-03 02:13:41',
],
[
'id' => 41,
'name' => 'guanguans.dcat-login-captcha',
'type' => 1,
'version' => '1.0.15',
'detail' => 'Fix captcha check.',
'created_at' => '2024-11-03 02:13:41',
'updated_at' => '2024-11-03 02:13:41',
],
[
'id' => 42,
'name' => 'guanguans.dcat-login-captcha',
'type' => 1,
'version' => '1.0.16',
'detail' => 'Add migration files.',
'created_at' => '2024-11-03 02:13:41',
'updated_at' => '2024-11-03 02:13:41',
],
[
'id' => 43,
'name' => 'guanguans.dcat-login-captcha',
'type' => 1,
'version' => '1.0.17',
'detail' => 'Fix migration file name.',
'created_at' => '2024-11-03 02:13:41',
'updated_at' => '2024-11-03 02:13:41',
],
[
'id' => 44,
'name' => 'guanguans.dcat-login-captcha',
'type' => 1,
'version' => '1.0.18',
'detail' => 'Update to single action controller.',
'created_at' => '2024-11-03 02:13:41',
'updated_at' => '2024-11-03 02:13:41',
],
[
'id' => 45,
'name' => 'guanguans.dcat-login-captcha',
'type' => 1,
'version' => '1.0.18',
'detail' => 'Fix setting.',
'created_at' => '2024-11-03 02:13:41',
'updated_at' => '2024-11-03 02:13:41',
],
[
'id' => 46,
'name' => 'guanguans.dcat-login-captcha',
'type' => 1,
'version' => '1.0.18',
'detail' => 'Optimize migration file.',
'created_at' => '2024-11-03 02:13:41',
'updated_at' => '2024-11-03 02:13:41',
],
[
'id' => 47,
'name' => 'guanguans.dcat-login-captcha',
'type' => 1,
'version' => '1.0.19',
'detail' => 'Fix loading config.',
'created_at' => '2024-11-03 02:13:41',
'updated_at' => '2024-11-03 02:13:41',
],
[
'id' => 48,
'name' => 'guanguans.dcat-login-captcha',
'type' => 1,
'version' => '1.0.19',
'detail' => 'Remove version update migration.',
'created_at' => '2024-11-03 02:13:41',
'updated_at' => '2024-11-03 02:13:41',
],
[
'id' => 49,
'name' => 'guanguans.dcat-login-captcha',
'type' => 1,
'version' => '1.0.19',
'detail' => 'Cancel service late registration.',
'created_at' => '2024-11-03 02:13:41',
'updated_at' => '2024-11-03 02:13:41',
],
[
'id' => 50,
'name' => 'guanguans.dcat-login-captcha',
'type' => 1,
'version' => '1.1.0',
'detail' => 'chore(deps): update overtrue/phplint to support more versions.',
'created_at' => '2024-11-03 02:13:41',
'updated_at' => '2024-11-03 02:13:41',
],
[
'id' => 51,
'name' => 'guanguans.dcat-login-captcha',
'type' => 1,
'version' => '1.1.0',
'detail' => 'update LoginCaptchaServiceProvider.php to merge config correctly(#27).',
'created_at' => '2024-11-03 02:13:41',
'updated_at' => '2024-11-03 02:13:41',
],
[
'id' => 52,
'name' => 'guanguans.dcat-login-captcha',
'type' => 1,
'version' => '1.1.0',
'detail' => 'Bump dependabot/fetch-metadata from 1.3.5 to 1.3.6.',
'created_at' => '2024-11-03 02:13:41',
'updated_at' => '2024-11-03 02:13:41',
],
[
'id' => 53,
'name' => 'guanguans.dcat-login-captcha',
'type' => 1,
'version' => '1.1.0',
'detail' => 'Bump actions/stale from 6 to 7.',
'created_at' => '2024-11-03 02:13:41',
'updated_at' => '2024-11-03 02:13:41',
],
[
'id' => 54,
'name' => 'guanguans.dcat-login-captcha',
'type' => 1,
'version' => '1.1.0',
'detail' => 'Update vimeo/psalm requirement from ^4.0 to ^4.0 || ^5.0.',
'created_at' => '2024-11-03 02:13:41',
'updated_at' => '2024-11-03 02:13:41',
],
[
'id' => 55,
'name' => 'guanguans.dcat-login-captcha',
'type' => 1,
'version' => '1.1.0',
'detail' => 'Bump dependabot/fetch-metadata from 1.3.4 to 1.3.5.',
'created_at' => '2024-11-03 02:13:41',
'updated_at' => '2024-11-03 02:13:41',
],
[
'id' => 56,
'name' => 'guanguans.dcat-login-captcha',
'type' => 1,
'version' => '1.1.0',
'detail' => 'Bump dependabot/fetch-metadata from 1.3.3 to 1.3.4.',
'created_at' => '2024-11-03 02:13:41',
'updated_at' => '2024-11-03 02:13:41',
],
[
'id' => 57,
'name' => 'guanguans.dcat-login-captcha',
'type' => 1,
'version' => '1.1.0',
'detail' => 'Bump actions/stale from 5 to 6.',
'created_at' => '2024-11-03 02:13:41',
'updated_at' => '2024-11-03 02:13:41',
],
[
'id' => 58,
'name' => 'sparkinzy.dcat-viewer',
'type' => 1,
'version' => '1.0.0',
'detail' => '基于 神级插件 viewerjs 做的一个封装,提升Dcat Admin 图片预览效果,实现放大、缩小、翻转、旋转等效果.',
'created_at' => '2024-11-03 02:13:42',
'updated_at' => '2024-11-03 02:13:42',
],
[
'id' => 59,
'name' => 'sparkinzy.dcat-viewer',
'type' => 1,
'version' => '1.0.2',
'detail' => '提升viewer的zindex为8个9,方便在modal实现图片预览',
'created_at' => '2024-11-03 02:13:42',
'updated_at' => '2024-11-03 02:13:42',
],
[
'id' => 60,
'name' => 'sparkinzy.dcat-viewer',
'type' => 1,
'version' => '1.0.3',
'detail' => '新增views目录,便于php artisan optimize',
'created_at' => '2024-11-03 02:13:42',
'updated_at' => '2024-11-03 02:13:42',
],
]
);
// pivot tables
DB::table('admin_permission_menu')->truncate();
DB::table('admin_permission_menu')->insert(
[
]
);
DB::table('admin_role_menu')->truncate();
DB::table('admin_role_menu')->insert(
[
]
);
DB::table('admin_role_permissions')->truncate();
DB::table('admin_role_permissions')->insert(
[
]
);
// finish
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment