forked from aslan/applicant-site
prodV1 #2
|
@ -16,7 +16,7 @@ class StoreDepartmentRequest extends FormRequest
|
|||
{
|
||||
return [
|
||||
'position' => 'required|int|numeric|max:255',
|
||||
'name' => 'required|string|max:255|unique:departments,name',
|
||||
'name' => 'required|string|max:255',
|
||||
'description' => 'nullable|string',
|
||||
'slug' => 'nullable|string|max:255|unique:departments,slug',
|
||||
'faculty_id' => 'required|numeric|int|max:1000',
|
||||
|
|
|
@ -25,8 +25,7 @@ class UpdateDepartmentRequest extends FormRequest
|
|||
'name' => [
|
||||
'required',
|
||||
'string',
|
||||
'max:255',
|
||||
"unique:departments,name,{$this->department->id}",
|
||||
'max:255'
|
||||
],
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue