Level 75
Good example here https://www.w3schools.com/sql/func_mysql_date_format.asp
1 like
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I read the query like this, what does it mean? thanks
DB::raw("DATE_FORMAT(created_at, '%Y/%m') history_date")
Please or to participate in this conversation.