app/Http/Requests/VendorRequest.php
/**
     * Get the validation messages that apply to the request.
     *
     * @return array
     */
Get the validation messages that apply to the request.
@return array
Get the validation messages that apply to the request . @return array
public function messages()
    {
        return [
            'vend-name.required'    => 'Please enter the vendor\'s name',           
            'vend-name.string'      => 'Name must be letters',                      
            'vend-name.max'         => 'Name max value is 100 character',           
            'vend-stat.in'          => 'Status value isn\'t valid',                         
            'vend-mail.required'    => 'Vendor\'s email is mandatory',                      
            'vend-mail.unique'      => 'Already registered try another one',                
            'vend-mail.email'       => 'Please enter a valid email',                        
            'vend-cate.required'    => 'Please select the business related category',           
            'vend-cate.exists'      => 'Invalid Category value',                                
            'vend_logo.required_without'    => 'Please upload the vendor\'s logo',              
            'vend_logo.mimes'               => 'Only "jpg", "jpeg", & "png" are available',     
            'vend-mobi.required'    => 'Please enter a phone number',               
            'vend-mobi.unique'      => 'Already registered try another one',        
            'vend-mobi.max'         => 'Invalid mobile number',                     
            'vend-mobi.regex'       => 'Invalid mobile number',                     
            'vend-mobi.not_regex'   => 'Invalid mobile number',                     
            'vend-addr.required_without'    => 'Please Insert the vendor\'s address',   
            'vend-addr.string'              => 'Invalid address value',                 
            'vend-addr.max'                 => 'Invalid address value',                 
            'vend-pass.required_without'    => 'Please initiate the vendor\'s password',      
            'vend-pass.string'              => 'Invalid input value',                         
            'vend-pass.min'                 => 'Password must be at least 6 characters',      
        ];
    }
public function messages ( ) { return [ 'vend-name.required' => 'Please enter the vendor\'s name' , 'vend-name.string' => 'Name must be letters' , 'vend-name.max' => 'Name max value is 100 character' , 'vend-stat.in' => 'Status value isn\'t valid' , 'vend-mail.required' => 'Vendor\'s email is mandatory' , 'vend-mail.unique' => 'Already registered try another one' , 'vend-mail.email' => 'Please enter a valid email' , 'vend-cate.required' => 'Please select the business related category' , 'vend-cate.exists' => 'Invalid Category value' , 'vend_logo.required_without' => 'Please upload the vendor\'s logo' , 'vend_logo.mimes' => 'Only "jpg", "jpeg", & "png" are available' , 'vend-mobi.required' => 'Please enter a phone number' , 'vend-mobi.unique' => 'Already registered try another one' , 'vend-mobi.max' => 'Invalid mobile number' , 'vend-mobi.regex' => 'Invalid mobile number' , 'vend-mobi.not_regex' => 'Invalid mobile number' , 'vend-addr.required_without' => 'Please Insert the vendor\'s address' , 'vend-addr.string' => 'Invalid address value' , 'vend-addr.max' => 'Invalid address value' , 'vend-pass.required_without' => 'Please initiate the vendor\'s password' , 'vend-pass.string' => 'Invalid input value' , 'vend-pass.min' => 'Password must be at least 6 characters' , ] ; }
Get the validation messages that apply to the request.
Get the validation messages that apply to the request .
// MESSAGES FOR VENDORS CREATION FORM // VENDOR NAME INPUT REQUIRED MESSAGE // VENDOR NAME INPUT STRING MESSAGE // VENDOR NAME INPUT MAX MESSAGE // VENDOR STATUS CHECK INPUT MESSAGE // 'vend-mail.sometimes'   => 'Vendor\'s email is optional',                    // VENDOR EMAIL INPUT SOMETIMES MESSAGE // 'vend-mail.nullable'    => 'Vendor\'s email is optional',                    // VENDOR EMAIL INPUT NULLABLE MESSAGE // VENDOR EMAIL INPUT REQUIRED MESSAGE // VENDOR EMAIL INPUT UNIQUE MESSAGE // VENDOR EMAIL INPUT EMAIL MESSAGE // VENDOR CATEGORY SELECT INPUT REQUIRED MESSAGE // VENDOR CATEGORY SELECT INPUT EXISTS MESSAGE // VENDOR LOGO IMAGE INPUT REQUIRED WITHOUT MESSAGE // VENDOR LOGO IMAGE INPUT MIMES MESSAGE // VENDOR MOBILE INPUT REQUIRED MESSAGE // VENDOR MOBILE INPUT UNIQUE MESSAGE // VENDOR MOBILE INPUT MAX MESSAGE // VENDOR MOBILE INPUT REGEX MESSAGE // VENDOR MOBILE INPUT NOT REGEX MESSAGE // VENDOR ADDRESS INPUT REQUIRED MESSAGE // VENDOR ADDRESS INPUT STRING MESSAGE // VENDOR ADDRESS INPUT MAX MESSAGE // VENDOR PASSWORD INPUT REQUIRED MESSAGE // VENDOR PASSWORD INPUT STRING MESSAGE // VENDOR PASSWORD INPUT MINIMUM CHARACTERS MESSAGE