adds validation for department names at Company locations

This commit is contained in:
Godfrey M
2022-11-09 13:11:33 -08:00
parent 7c21158680
commit 92ae271292
4 changed files with 22 additions and 1 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ class Department extends SnipeModel
];
protected $rules = [
'name' => 'required|max:255',
'name' => 'required|max:255|is_unique_department',
'location_id' => 'numeric|nullable',
'company_id' => 'numeric|nullable',
'manager_id' => 'numeric|nullable',