新增模块管理

This commit is contained in:
JaguarJack
2020-09-12 17:22:43 +08:00
parent dc4855f5c1
commit ee624300b6
4 changed files with 74 additions and 6 deletions

View File

@@ -110,9 +110,9 @@ class InstallLocalModule
* @throws \think\db\exception\ModelNotFoundException
* @return bool
*/
protected function findModuleInPermissions()
public function findModuleInPermissions()
{
return Permissions::where('module', $this->module)->find() ? true : false;
return Permissions::withTrashed()->where('module', $this->module)->find() ? true : false;
}
/**