Changeset ea7b12a for app/Http/Requests/Dashboard
- Timestamp:
- 10/19/21 17:46:21 (3 years ago)
- Branches:
- develop, master
- Children:
- 6b95845
- Parents:
- b9c4a92
- Location:
- app/Http/Requests/Dashboard
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
app/Http/Requests/Dashboard/DocumentRequest.php
rb9c4a92 rea7b12a 5 5 use App\Models\Department; 6 6 use App\Models\Document; 7 use App\Models\FileType;8 7 use Illuminate\Foundation\Http\FormRequest; 9 8 … … 32 31 public function rules() 33 32 { 34 35 33 $rules = [ 36 34 "arch_id" => [ … … 57 55 if ($this->isMethod("patch")) { 58 56 $fileRules = [ 59 "file_item.*" => "mimes:jpg,jpeg,png |max:4096"57 "file_item.*" => "mimes:jpg,jpeg,png,pdf|max:4096" 60 58 ]; 61 59 } else { 62 60 $fileRules = [ 63 "file_item.*" => "mimes:jpg,jpeg,png |max:4096"61 "file_item.*" => "mimes:jpg,jpeg,png,pdf|max:4096" 64 62 ]; 65 63 }
Note:
See TracChangeset
for help on using the changeset viewer.