Support the ongoing development of Laravel.io →
Database Eloquent

I can get the records created in the current month, I use postgresql

SELECT *
FROM quakes
WHERE extract(month from now()) = extract(month from created_at)
Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

montes2012 montes2012 Joined 11 Feb 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.