app/Http/Requests/CarRequest.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()
    {
        $nameErrorMessage = 'Please provide valid name which is between 3 and 255 characters.';
        return [
            'name.required' => $nameErrorMessage,
            'name.min'      => $nameErrorMessage,
            'name.max'      => $nameErrorMessage,
        ];
    }
public function messages ( ) { $ nameErrorMessage = 'Please provide valid name which is between 3 and 255 characters.' ; return [ 'name.required' => $ nameErrorMessage , 'name.min' => $ nameErrorMessage , 'name.max' => $ nameErrorMessage , ] ; }
Get the validation messages that apply to the request.
Get the validation messages that apply to the request .