mirror of
https://gitee.com/hzchunfen/erp.git
synced 2025-12-01 06:30:49 +00:00
commit
1a44027349
@ -15,7 +15,7 @@ class PermissionsTableSeeder extends Seeder
|
|||||||
{
|
{
|
||||||
$routes = include(resource_path('lang/zh-CN/permission.php'));
|
$routes = include(resource_path('lang/zh-CN/permission.php'));
|
||||||
foreach ($routes as $key => $route) {
|
foreach ($routes as $key => $route) {
|
||||||
$data = ['name' => $key, 'guard_name' => 'api'];
|
$data = ['id' => $route['id'], 'name' => $key, 'guard_name' => 'api'];
|
||||||
Permission::firstOrCreate($data);
|
Permission::firstOrCreate($data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user