Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Date Scopes Laravel Package

laracraft-tech/laravel-date-scopes

Laravel Date Scopes adds a wide range of ready-made date scopes to your Eloquent models via a simple trait. Query records with ofToday(), ofLastWeek(), monthToDate(), ofLastYear(), and many more—fully chainable with any builder method like sum or avg.

View on GitHub
Deep Wiki
Context7
v2.5.0

What's Changed

Full Changelog: https://github.com/laracraft-tech/laravel-date-scopes/compare/v2.4.0...v2.5.0

v2.4.0
v2.2.0

What's changed

v2.1.0
  • Laravel 11 Support
v2.0.1

What's changed

  • fixed php doc block
v2.0.0

What's Changed

  • It's now possible to pass startFrom as a parameter to query between certain ranges. For instance: Transaction::ofLastYear(startFrom: '2020-01-01'). You may need to change the order of your arguments or use named arguments. Checkout UPGRADING file for that.
v1.1.1

What's Changed

  • added tests for custom created_at column name
v1.1.0

What's Changed

  • support for custom created_at column names per model #5
v1.0.6

Added

  • method doc blocks for IDE auto-completion
v1.0.5

Added

  • test suite
  • century scope
v1.0.4

Fixed

  • fixed overflow date units
  • fixed singular scopes
  • fixed second date unit

Added

  • added justNow scope
v1.0.3

Fixed

  • Fixed date overflows
v1.0.2

Bugs

  • fixed debug
v1.0.1

Bugs

  • fixed dependencies
v1.0.0

Version 1

  • lots of date scopes!
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
ably/pubsub-server
mstfkhazaal/defender
mfonte/base62x
karnoweb/metapilot
tobya/bcsapiwrapper
swalker2/cpanel
vish4395/laravel-translation-manager
morningtrain/economic
teksite/systeminfo-laravel
atomcms/voting
run6/weather
siokas/laravelembeddirectives
adamlien/pkuuids
gilsonsouza/lara-doc-generator
manelgavalda/enrollment_mobile
unabomber/timezone
delatbabel/contacts
astritzeqiri/g-recaptcha
kevinongko/laravel-genode
developeruz/laravel-analytics