Changeset b39afb5 for app/Http


Ignore:
Timestamp:
10/23/21 17:48:25 (3 years ago)
Author:
beratkjufliju <kufliju@…>
Branches:
develop, master
Children:
a8346eb
Parents:
4b7e2d3
Message:

minor bug fixes

Location:
app/Http/Requests/Dashboard
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • app/Http/Requests/Dashboard/NewDepartmentRequest.php

    r4b7e2d3 rb39afb5  
    2626        return [
    2727        "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"
    2929        ];
    3030    }
  • app/Http/Requests/Dashboard/UpdateDepartmentRequest.php

    r4b7e2d3 rb39afb5  
    2626        return [
    2727            "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"
    2929        ];
    3030    }
Note: See TracChangeset for help on using the changeset viewer.