app/Http/Requests/CheckOutRequest.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 [
            'full_name'    => 'required|min:5|max:50',
            'email'        => 'required|email',
            'phone_number' => 'required|regex:/(09)[0-9]{9}/|digits:11',
            'postal_code'  => 'required|digits:10',
            'province'     => 'required|digits_between:1,2',
            'city'         => 'required|digits_between:1,3',
            'address'      => 'required|max:300',
        ];
    }
public function rules ( ) { return [ 'full_name' => 'required|min:5|max:50' , 'email' => 'required|email' , 'phone_number' => 'required|regex:/(09)[0-9]{9}/|digits:11' , 'postal_code' => 'required|digits:10' , 'province' => 'required|digits_between:1,2' , 'city' => 'required|digits_between:1,3' , 'address' => 'required|max:300' , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .