Skip to content

Conversation

@peterfox
Copy link
Collaborator

@peterfox peterfox commented Jun 3, 2023

Changes

  • Adds the new rule
  • Adds tests for the rule
  • Adds documentation for said rule

Why

The today() helper exists in Laravel, providing the date today but set at the start of the day. It makes sense, where possible, to remove the use of now() for today() when this is the case.

@driftingly driftingly merged commit 355abcf into driftingly:main Jun 3, 2023
driftingly pushed a commit that referenced this pull request Jun 7, 2023
* Converts now()->startOfDay() to today()

* Add docs

* improve return type
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants