Ignore:
Timestamp:
10/19/21 17:46:21 (3 years ago)
Author:
beratkjufliju <kufliju@…>
Branches:
develop, master
Children:
6b95845
Parents:
b9c4a92
Message:

added files crud in table

File:
1 edited

Legend:

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

    rb9c4a92 rea7b12a  
    55use App\Models\Department;
    66use App\Models\Document;
    7 use App\Models\FileType;
    87use Illuminate\Foundation\Http\FormRequest;
    98
     
    3231    public function rules()
    3332    {
    34 
    3533        $rules = [
    3634            "arch_id" => [
     
    5755        if ($this->isMethod("patch")) {
    5856            $fileRules = [
    59                 "file_item.*" => "mimes:jpg,jpeg,png|max:4096"
     57                "file_item.*" => "mimes:jpg,jpeg,png,pdf|max:4096"
    6058            ];
    6159        } else {
    6260            $fileRules = [
    63                 "file_item.*" => "mimes:jpg,jpeg,png|max:4096"
     61                "file_item.*" => "mimes:jpg,jpeg,png,pdf|max:4096"
    6462            ];
    6563        }
Note: See TracChangeset for help on using the changeset viewer.