app/Http/Requests/VendorValidator.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 [
            'fname'=>'required|min:4|max:12|alpha',
            'lname'=>'required|min:4|max:12|alpha',
            'gender'=>'required',
            'dob'=>'required',
            'registrationnumber'=>'required',
            'panvatnumber'=>'required',
            'email'=>'required',
            'phoneno'=>'required',
            'mobileno'=>'required|regex:/^([0-9\s\-\+\(\)]*)$/|min:10',
            'city'=>'required',
            'district'=>'required',
            'permanent_address'=>'required',
            'temporary_address'=>'required',
            'vendor_type'=>'required',
            'image'=>'required|image',
            'firstcontactperson'=>'required',
            'firstemail'=>'required',
            'firstphone'=>'required',
            'secondcontactperson'=>'required',
            'secondemail'=>'required',
            'secondphone'=>'required'
        ];
    }
public function rules ( ) { return [ 'fname' => 'required|min:4|max:12|alpha' , 'lname' => 'required|min:4|max:12|alpha' , 'gender' => 'required' , 'dob' => 'required' , 'registrationnumber' => 'required' , 'panvatnumber' => 'required' , 'email' => 'required' , 'phoneno' => 'required' , 'mobileno' => 'required|regex:/^([0-9\s\-\+\(\)]*)$/|min:10' , 'city' => 'required' , 'district' => 'required' , 'permanent_address' => 'required' , 'temporary_address' => 'required' , 'vendor_type' => 'required' , 'image' => 'required|image' , 'firstcontactperson' => 'required' , 'firstemail' => 'required' , 'firstphone' => 'required' , 'secondcontactperson' => 'required' , 'secondemail' => 'required' , 'secondphone' => 'required' ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .