From 03b13a3f58f2a696fe51d76fa6a3ab1fab0abc1c Mon Sep 17 00:00:00 2001 From: Zacharias Creutznacher Date: Thu, 12 Oct 2023 14:55:53 +0200 Subject: [PATCH] Update README.md --- README.md | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index f4943e1..d5b18c3 100644 --- a/README.md +++ b/README.md @@ -18,10 +18,15 @@ class Transaction extends Model use DateScopes; } -Transaction::ofToday(); // query transactions created today -Transaction::ofLastWeek(); // query transactions created during the last week -Transaction::monthToDate(); // query transactions created during the start of the current month till now -Transaction::ofLastYear(startFrom: '2020-01-01') // query transactions created during the last year, starting from 2020 +// query transactions created today +Transaction::ofToday(); + // query transactions created during the last week +Transaction::ofLastWeek(); + // query transactions created during the start of the current month till now +Transaction::monthToDate(); + // query transactions created during the last year, starting from 2020 +Transaction::ofLastYear(startFrom: '2020-01-01'); + // ... and much more scopes are available (see below) // For sure, you can chain any Builder function you want here.