{"repo":"laracraft-tech/laravel-date-scopes","free":true,"listed":false,"github":"https://github.com/laracraft-tech/laravel-date-scopes","clone":"git clone https://github.com/laracraft-tech/laravel-date-scopes.git","description":"Some useful date scopes for your Laravel Eloquent models!","language":"PHP","stars":514,"topics":["date","laravel","scopes","analytics","eloquent","fincance","statistics"],"license":"MIT","category":"analytics","readme_excerpt":"Laravel Date Scopes This package provides a big range of useful date scopes for your Laravel Eloquent models! Let's assume you have a Transaction model. If you now give it the DateScopes trait, you can do something like this: ToC - Installation - Configuration - Global configuration - Fluent date range configuration - Fluent created at column configuration - Custom start date - Scopes Installation You can install the package via composer: Configuration Inclusive/Exclusive In statistics , when asking for \"the last 7 days\", the current day may or may not be included in the calculation depending on the context and the specific requirements of the analysis. If you want to include the current day in the calculation, you would generally use an inclusive range, meaning that you would include records created on the current day as well as records created in the previous 6 days. If you want to exclude the current day in the calculation, you would generally use an exclusive range, meaning that you would include records created in the previous 7 days, but not records created on the current day . Ultimately, it depends on the context and what you're trying to achieve with your data. It's always a good idea to clarify the requirements and expectations with stakeholders to ensure that you're including or excluding the correct records. The same concept applies to other time intervals like weeks, months, quarters, and years etc. The default for this package is exclusive approach, which means ","default_branch":null,"files":null,"tree":[],"storefront":"/r/laracraft-tech","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/laracraft-tech/laravel-date-scopes/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}