Support the ongoing development of Laravel.io →
posted 8 years ago
Database
Last updated 2 years ago.
0

Should be more like the following

date_sub(now() - 30 day)

or

date_sub(curdate() - 1 MONTH)

Check with mysql documentation on exact syntax , but this should point you in the right direction.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

BlueDMND bluedmnd Joined 21 Apr 2016

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.

© 2024 Laravel.io - All rights reserved.