Laravel Framework Tutorials PHP & MySQL
To get the last day of the month use date('t'):
$dueDate = date('t/m/Y', strtotime($row->created_at));
or with Carbon (Laravel example)
$row->created_at->format('t/m/Y');
Subscribe to my newsletter for the latest updates on my books and digital products.
Find posts, tutorials, and resources quickly.
Subscribe to my newsletter for the latest updates on my books and digital products.