new feature

This commit is contained in:
JaguarJack
2022-12-14 19:25:52 +08:00
parent b63cd5d01c
commit 098463f4e1
35 changed files with 391 additions and 146 deletions

View File

@@ -46,6 +46,6 @@ class DepartmentsController extends Controller
public function enable($id)
{
return $this->model->disOrEnable($id);
return $this->model->toggleBy($id);
}
}

View File

@@ -46,6 +46,6 @@ class JobsController extends Controller
public function enable($id)
{
return $this->model->disOrEnable($id);
return $this->model->toggleBy($id);
}
}

View File

@@ -52,6 +52,6 @@ class PermissionsController extends Controller
*/
public function enable($id)
{
return $this->model->disOrEnable($id, 'hidden');
return $this->model->toggleBy($id, 'hidden');
}
}