Skip to content

Commit

Permalink
Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
mlevent committed Nov 12, 2021
1 parent 2f25ccf commit de60b29
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,16 @@ foreach ($products as $product) {
Bir SQL sorgusu oluşturup, bu sorguyu çalıştırmak için metodları zincir şeklinde kullanabilirsiniz.

```php
$products = $db->select('id, name, code, price, stock')
->table('products')
->between('price', 900, 1500)
->grouped(function($q){
$q->like(['code', 'name'], '%iphone%')->orWhere('featured', 1);
})
->in('categoryId', [1, 2, 3, 4, 5, 6])
->order('price')
->get();
$query = $db->select('id, name, code, price, stock')
->table('products')
->between('price', 900, 1500)
->grouped( function($q) {
$q->like(['code', 'name'], '%iphone%')
->orWhere('featured', 1);
})
->in('categoryId', [1, 2, 3, 4, 5, 6])
->order('price')
->get();
```

Yukarıdaki zincirin sorgu çıktısı şu şekilde olacaktır:
Expand Down

0 comments on commit de60b29

Please sign in to comment.