Skip to content

[8.x] Add date facade alias #5556

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 10, 2021
Merged

[8.x] Add date facade alias #5556

merged 1 commit into from
Mar 10, 2021

Conversation

timacdonald
Copy link
Member

@timacdonald timacdonald commented Mar 10, 2021

All other facades have an alias (except for ParallelTesting - which I don't think needs one).

I think having an alias for this makes sense as it can by handy in views to be able to work with dates that aren't always coming from a model where a cast is usable and an alias makes this nicer as we don't need to import the namespace. It is also handy in tinker to just call Date::parse() to test some stuff on the fly.

Related: laravel/docs#6897

taylorotwell pushed a commit to laravel/docs that referenced this pull request Mar 10, 2021
@taylorotwell taylorotwell merged commit 89b1544 into laravel:8.x Mar 10, 2021
imabug added a commit to imabug/raddb that referenced this pull request Mar 24, 2021
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