Skip to content

Black Deer Dev

Black Deer Dev
  • Home
  • About
  • Blog
  • Longform
  • Portfolio

Carbon

Carbon:: First and Last Day of Previous Month

May 21, 2020 by Johnnyparky

You know you have to query last month’s records all the time (instead of the last 30 days). Here’s how to get those numbers easily with Carbon. We do the extra fancy footwork for the end of the month to avoid simply getting the same last date of the month for the previous month.

Categories Blog Tags Carbon Leave a comment

Categories

  • Blog
  • Longform
  • Portfolio
  • Review
  • Uncategorized

About

About me

Categories

  • Blog
  • Longform
  • Portfolio
  • Review
  • Uncategorized

Tags

Active Record AI Ajax Animation Bash Browser Claude Code Composer Docker Eloquent Error Git GraphQL Heroku Home Lab Ionic Javascript Keyboard Laravel Local LLM Mac Memory Migration MySql Network Nginx Npm osx pear pecl PHP Postgres Query Builder Rails Redis Relationships Ruby S3 Scraper SQL Undergrowth Upload Validation Vue zsa
© 2026 Black Deer Dev • Built with GeneratePress