<?php

namespace App\Http\Requests;

class ContactFormRequest extends Request
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        $rules = ['firstname' => 'required|min:3',
                    'lastname' => 'required|min:3',
                    'gender' => 'required|max:1',
                    'birthdate' => 'date_format:'.trans('app.dateformat.carbon'),
                    #'mobile' => 'phone',
                    #'mobile_country' => 'required_with:mobile|size:2' /* FIXME: LENGHT MUST BE EXACT 2 */
                ];

        switch ($this->method()) {
            case 'PATCH':
            case 'PUT':
            case 'POST':
                return $rules;
                break;
            default:
                return [];
                break;
        }
    }
}

<?php

namespace App\Http\Requests;

class ContactFormRequest extends Request
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        $rules = ['firstname'  => 'required|min:3',
                    'lastname' => 'required|min:3',
                    'gender'   => 'required|max:1',
                    #'mobile' => 'phone',
                    #'mobile_country' => 'required_with:mobile|size:2' /* FIXME: LENGHT MUST BE EXACT 2 */
                ];

        switch ($this->method()) {
            case 'PATCH':
            case 'PUT':
            case 'POST':
                return $rules;
                break;
            default:
                return [];
                break;
        }
    }
}

--- 
+++ 
@@ -21,9 +21,10 @@
      */
     public function rules()
     {
-        $rules = ['firstname'  => 'required|min:3',
+        $rules = ['firstname' => 'required|min:3',
                     'lastname' => 'required|min:3',
-                    'gender'   => 'required|max:1',
+                    'gender' => 'required|max:1',
+                    'birthdate' => 'date_format:'.trans('app.dateformat.carbon'),
                     #'mobile' => 'phone',
                     #'mobile_country' => 'required_with:mobile|size:2' /* FIXME: LENGHT MUST BE EXACT 2 */
                 ];
Add birthdate localized format input validation
