Skip to content

Commit 0356521

Browse files
authored
Updated for where
1 parent da62e30 commit 0356521

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
[![Build Status](https://travis-ci.org/Codexshaper/laravel-woocommerce.svg?branch=master)](https://travis-ci.org/Codexshaper/laravel-woocommerce)
33
[![StyleCI](https://github.styleci.io/repos/180436811/shield?branch=master)](https://github.styleci.io/repos/180436811)
44
[![Quality Score](https://img.shields.io/scrutinizer/g/Codexshaper/laravel-woocommerce.svg?style=flat-square)](https://scrutinizer-ci.com/g/Codexshaper/laravel-woocommerce)
5+
[![Downloads](https://poser.pugx.org/Codexshaper/laravel-woocommerce/d/total.svg)](https://packagist.org/packages/Codexshaper/laravel-woocommerce)
56
[![Latest Version on Packagist](https://img.shields.io/packagist/v/Codexshaper/laravel-woocommerce.svg?style=flat-square)](https://packagist.org/packages/Codexshaper/laravel-woocommerce)
67

78
# Description
@@ -22,8 +23,12 @@ WooCommerce Rest API for Laravel. You can Get, Create, Update and Delete your wo
2223

2324
```
2425
// Where passing multiple parameters
25-
$orders = Order::where('status', 'publishing')->get();
26-
$orders = Order::where('total', '>=', 10)->get();
26+
$products = Product::where('title','hello')->get();
27+
OR
28+
// You can call field with where clause
29+
$products = Product::whereTitle('hello')->get();
30+
// Fields name are more than one words or seperate by underscore (_). For example field name is `min_price`
31+
$products = Product::whereMinPrice(5)->get();
2732
2833
// Where passing an array
2934
$orders = Order::where(['status' => 'processing']);

0 commit comments

Comments
 (0)