修改数据填充
This commit is contained in:
parent
9e4883ead6
commit
4f5476c270
@ -25,13 +25,12 @@ class PermissionSeed extends Seeder
|
|||||||
'description' => 'super user',
|
'description' => 'super user',
|
||||||
'creator_id' => 1,
|
'creator_id' => 1,
|
||||||
]);
|
]);
|
||||||
|
\think\facade\Db::name( 'user_has_roles')->insert([
|
||||||
\think\facade\Db::name(config('database.connections.mysql.prefix') . 'user_has_roles')->insert([
|
|
||||||
'role_id' => 1,
|
'role_id' => 1,
|
||||||
'uid' => 1,
|
'uid' => 1,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
\think\facade\Db::name(config('database.connections.mysql.prefix') .'role_has_permissions')->insertAll($this->getRolePermissions());
|
\think\facade\Db::name('role_has_permissions')->insertAll($this->getRolePermissions());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user