feat: #20220816 权限优化
This commit is contained in:
parent
1c89064f65
commit
403c9f96b7
@ -15,7 +15,7 @@ class PermissionsTableSeeder extends Seeder
|
||||
{
|
||||
$routes = include(resource_path('lang/zh-CN/permission.php'));
|
||||
foreach ($routes as $key => $route) {
|
||||
$data = ['name' => $key, 'guard_name' => 'api'];
|
||||
$data = ['id' => $route['id'], 'name' => $key, 'guard_name' => 'api'];
|
||||
Permission::firstOrCreate($data);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user