app/Http/Requests/DocumentManagementValidator.php
/**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
Get the validation rules that apply to the request.
@return array
Get the validation rules that apply to the request . @return array
public function rules()
    {
        return [
            'staffid'=>'required',
            'staffname'=>'required',
            'bankaccountnumber'=>'required|min:6|max:25',
            'pandocument'=>'required|image',
            'pfdocument'=>'required|image',
            'citdocument'=>'required|image',
            'appointmentdocument'=>'required|image',
            'contractdocument'=>'required|image'
        ];
    }
public function rules ( ) { return [ 'staffid' => 'required' , 'staffname' => 'required' , 'bankaccountnumber' => 'required|min:6|max:25' , 'pandocument' => 'required|image' , 'pfdocument' => 'required|image' , 'citdocument' => 'required|image' , 'appointmentdocument' => 'required|image' , 'contractdocument' => 'required|image' ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .