Changeset d795fa6 for app/Http/Requests/Dashboard
- Timestamp:
- 10/17/21 18:39:50 (3 years ago)
- Branches:
- develop, master
- Children:
- bd9e8e3
- Parents:
- 120759b
- Location:
- app/Http/Requests/Dashboard
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
app/Http/Requests/Dashboard/DocumentRequest.php
r120759b rd795fa6 4 4 5 5 use App\Models\Document; 6 use App\Models\FileType; 6 7 use Illuminate\Foundation\Http\FormRequest; 7 8 … … 30 31 public function rules() 31 32 { 33 32 34 $rules = [ 33 35 "arch_id" => "required|min:10|max:255", … … 40 42 $fileRules = [ 41 43 "file_item.*" => "mimes:jpg,jpeg,png|max:4096" 42 ];44 ]; 43 45 } else { 44 46 $fileRules = [ -
app/Http/Requests/Dashboard/EmailSettingsRequest.php
r120759b rd795fa6 25 25 { 26 26 return [ 27 "email" => "required|string|email|max: 255|unique:users,email,$this->id,id",27 "email" => "required|string|email|max:50|unique:users,email,$this->id,id", 28 28 ]; 29 29 } -
app/Http/Requests/Dashboard/NewDepartmentRequest.php
r120759b rd795fa6 25 25 { 26 26 return [ 27 "name" => "required|min:2|max: 25|unique:departments,name",27 "name" => "required|min:2|max:30|unique:departments,name", 28 28 "code" => "required|min:2|max:10|unique:departments,code" 29 29 ]; -
app/Http/Requests/Dashboard/NewUserRequest.php
r120759b rd795fa6 25 25 { 26 26 return [ 27 "name" => "required|alpha|min:2|max: 255",28 "surname" => "required|alpha|min:2|max: 255",29 " mobile_number" => "required|unique:users,mobile_number",30 "email" => "required|string|email|max: 255|unique:users,email",31 "username" => "required|min: 8|unique:users,username",27 "name" => "required|alpha|min:2|max:30", 28 "surname" => "required|alpha|min:2|max:30", 29 "phone_number" => "required|unique:users,phone_number", 30 "email" => "required|string|email|max:50|unique:users,email", 31 "username" => "required|min:5|max:30|unique:users,username", 32 32 "userRole" => "required|exists:roles,id", 33 33 "avatar" => "mimes:jpeg,png,gif|max:5000", -
app/Http/Requests/Dashboard/PasswordSettingsRequest.php
r120759b rd795fa6 34 34 } 35 35 ], 36 "password" => "required|string|confirmed|min: 8",36 "password" => "required|string|confirmed|min:6", 37 37 ]; 38 38 } -
app/Http/Requests/Dashboard/UpdateDepartmentRequest.php
r120759b rd795fa6 25 25 { 26 26 return [ 27 "name" => "required|min:2|max: 25|unique:departments,name,$this->id,id",28 "code" => "required|min:2|max: 10|unique:departments,code,$this->id,id"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" 29 29 ]; 30 30 } -
app/Http/Requests/Dashboard/UpdateUserData.php
r120759b rd795fa6 25 25 { 26 26 return [ 27 "name" => "required|alpha|min:2|max: 255",28 "surname" => "required|alpha|min:2|max: 255",29 " mobile_number" => "required|unique:users,mobile_number,$this->id,id",27 "name" => "required|alpha|min:2|max:30", 28 "surname" => "required|alpha|min:2|max:30", 29 "phone_number" => "required|unique:users,phone_number,$this->id,id", 30 30 "avatar" => "mimes:jpeg,png,gif|max:5000", 31 31 ]; -
app/Http/Requests/Dashboard/UpdateUserRequest.php
r120759b rd795fa6 25 25 { 26 26 return [ 27 "name" => "required|alpha|min:2|max: 255",28 "surname" => "required|alpha|min:2|max: 255",29 " mobile_number" => "required|unique:users,mobile_number,$this->id,id",30 "email" => "required|string|email|max: 255|unique:users,email,$this->id,id",31 "username" => "required|min: 8|unique:users,username,$this->id,id",27 "name" => "required|alpha|min:2|max:30", 28 "surname" => "required|alpha|min:2|max:30", 29 "phone_number" => "required|unique:users,phone_number,$this->id,id", 30 "email" => "required|string|email|max:50|unique:users,email,$this->id,id", 31 "username" => "required|min:5|unique:users,username,$this->id,id", 32 32 "userRole" => "required|exists:roles,id", 33 33 "avatar" => "mimes:jpeg,png,gif|max:5000", -
app/Http/Requests/Dashboard/UsernameSettingsRequest.php
r120759b rd795fa6 25 25 { 26 26 return [ 27 "username" => "required|alpha_dash|min: 8|unique:users,username,$this->id,id"27 "username" => "required|alpha_dash|min:5|unique:users,username,$this->id,id" 28 28 ]; 29 29 }
Note:
See TracChangeset
for help on using the changeset viewer.