-
Notifications
You must be signed in to change notification settings - Fork 11k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8.x] Adds datetime parsing to
Request
instance (#39945)
* Parses datetime from request input. * Fixes style and tests. * Adds support for default value (like "now"). * Style fixes. * Removes default and adds false to invalid datetimes. * Stabilize returns types when dealing with invalid dates. * Minor test formatting to push tests on GitHub. * Shortened function name to `date()`. * Restores exception handling. Trust your instincts. * Style fixes and method fixes. * formatting * Style fixes. Co-authored-by: Taylor Otwell <taylor@laravel.com>
- Loading branch information
1 parent
e8ccdac
commit 51e358c
Showing
2 changed files
with
73 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters