private function validateStoreInputs($inputs)
    {
        $rules = array(
            'selected_products' => 'required_without_all:selected_bundles,pricelist_id',
            'selected_bundles'  => 'required_without_all:selected_products,pricelist_id',
            'pricelist_id'      => 'required_without_all:selected_products,selected_bundles',
            'transaction_id'    => 'required',
            'payment_status'    => 'required',
            'paid'              => 'numeric',
            'email'             => 'required|email'
        );
        
        $messages = [
            'selected_products.required_without_all' =>
                trans('redminportal::messages.order_error_selected_products_required_without_all'),
            'selected_bundles.required_without_all' =>
                trans('redminportal::messages.order_error_selected_bundles_required_without_all'),
            'pricelist_id.required_without_all' =>
                trans('redminportal::messages.order_error_pricelist_id_required_without_all')
        ];

        return Validator::make($inputs, $rules, $messages);
    }
private function validateStoreInputs($inputs)
    {
        $rules = array(
            'selected_products' => 'required_without_all:selected_bundles,pricelist_id',
            'selected_bundles'  => 'required_without_all:selected_products,pricelist_id',
            'pricelist_id'      => 'required_without_all:selected_products,selected_bundles',
            'transaction_id'    => 'required',
            'payment_status'    => 'required',
            'paid'              => 'numeric',
            'email'             => 'required|email'
        );
        
        $messages = [
            'selected_products.required_without_all' =>
                trans('redminportal::messages.order_error_selected_products_required_without_all'),
            'selected_bundles.required_without_all' =>
                trans('redminportal::messages.order_error_selected_bundles_required_without_all'),
            'pricelist_id.required_without_all' =>
                trans('redminportal::messages.order_error_pricelist_id_required_without_all')
        ];

        return Validator::make($inputs, $rules, $messages);
    }
private function validateStoreInputs ( $ inputs ) { $ rules = array ( 'selected_products' => 'required_without_all:selected_bundles,pricelist_id' , 'selected_bundles' => 'required_without_all:selected_products,pricelist_id' , 'pricelist_id' => 'required_without_all:selected_products,selected_bundles' , 'transaction_id' => 'required' , 'payment_status' => 'required' , 'paid' => 'numeric' , 'email' => 'required|email' ) ; $ messages = [ 'selected_products.required_without_all' => trans ( 'redminportal::messages.order_error_selected_products_required_without_all' ) , 'selected_bundles.required_without_all' => trans ( 'redminportal::messages.order_error_selected_bundles_required_without_all' ) , 'pricelist_id.required_without_all' => trans ( 'redminportal::messages.order_error_pricelist_id_required_without_all' ) ] ; return Validator :: make ( $ inputs , $ rules , $ messages ) ; }
Validates inputs before storing data

@param array $inputs

@return object Validator
Validates inputs before storing data