Skip to content

Instantly share code, notes, and snippets.

@caingougou
Created September 9, 2021 02:07
Show Gist options
  • Save caingougou/61370da94932f8a43cedb401885b559e to your computer and use it in GitHub Desktop.
Save caingougou/61370da94932f8a43cedb401885b559e to your computer and use it in GitHub Desktop.
countdown dates
min(max(Carbon::createFromDate(2021, 9, 8)->diffInDays(today(), true), 0), 3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment