From ec1c3d73c795ffde8a760c623a5f767ff6eaa2ee Mon Sep 17 00:00:00 2001 From: Nghiem Anh Tuan Date: Mon, 9 Sep 2019 15:10:54 +0700 Subject: [PATCH] Fix documentation --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a918577..db4f330 100644 --- a/README.md +++ b/README.md @@ -134,7 +134,7 @@ DB::table('orders')->groupBy('country')->sum('amount') DB::table('orders')->count() DB::table('customers')->groupBy('state') - ->avg('income')->as('avgIncome') + ->avg('income')->alias('avgIncome') ``` ## Sub query table @@ -215,7 +215,7 @@ The `havingRaw` and `orHavingRaw` methods may be used to set a raw string as the ``` DB::table('orders') ->select('department') - ->sum('price')->as('total_sales') + ->sum('price')->alias('total_sales') ->groupBy('department') ->havingRaw('SUM(price) > 2500') ```