Changeset b39afb5 for app/Http/Requests
- Timestamp:
- 10/23/21 17:48:25 (3 years ago)
- Branches:
- develop, master
- Children:
- a8346eb
- Parents:
- 4b7e2d3
- Location:
- app/Http/Requests/Dashboard
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
app/Http/Requests/Dashboard/NewDepartmentRequest.php
r4b7e2d3 rb39afb5 26 26 return [ 27 27 "name" => "required|min:2|max:30|unique:departments,name", 28 "code" => "required|min: 2|max:10|unique:departments,code"28 "code" => "required|min:1|integer|unique:departments,code" 29 29 ]; 30 30 } -
app/Http/Requests/Dashboard/UpdateDepartmentRequest.php
r4b7e2d3 rb39afb5 26 26 return [ 27 27 "name" => "required|min:2|max:30|unique:departments,name,$this->id,id", 28 "code" => "required|min: 2|max:30|unique:departments,code,$this->id,id"28 "code" => "required|min:1|integer|unique:departments,code,$this->id,id" 29 29 ]; 30 30 }
Note:
See TracChangeset
for help on using the changeset viewer.