This commit is contained in:
2026-02-17 13:55:30 +08:00
parent f90afaddca
commit 6623c656f4
17 changed files with 1464 additions and 569 deletions
@@ -85,7 +85,7 @@ public function store(Request $request)
{
$validated = $request->validate([
'name' => 'required|string|max:50',
'parent_id' => 'nullable|integer|exists:auth_departments,id',
'parent_id' => 'nullable|integer',
'leader' => 'nullable|string|max:50',
'phone' => 'nullable|string|max:20',
'sort' => 'nullable|integer|min:0',
@@ -108,7 +108,7 @@ public function update(Request $request, $id)
{
$validated = $request->validate([
'name' => 'nullable|string|max:50',
'parent_id' => 'nullable|integer|exists:auth_departments,id',
'parent_id' => 'nullable|integer',
'leader' => 'nullable|string|max:50',
'phone' => 'nullable|string|max:20',
'sort' => 'nullable|integer|min:0',