From de60b29333fa21d996b3cc63a267072e8eb4df41 Mon Sep 17 00:00:00 2001 From: mlevent Date: Fri, 12 Nov 2021 03:24:55 +0300 Subject: [PATCH] Readme --- README.md | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 25e9750..63d771c 100644 --- a/README.md +++ b/README.md @@ -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: