@emfinanga what do you mean
so i want to calculate the save date from this date
what is 'save' date?
if you just want to display created_at + 7 days
$model->created_at->addDays(7);
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I want to show the date from and To by calculate from create date
example: created_at = 2020-11-19 12:54:18 so i want to calculate the 7 days from this date and show that end date of 7 days and display it as To date in the blade.
So you don't work with models, you need to parse it to carbon instance
{{ \Carbon\Carbon::parse($billsale->created_at_sale)->addWeek() }}
Please or to participate in this conversation.