How to add days to current date in Laravel blade
In this article, we will explain to you how to add days to current date in Laravel blade. if you want to add days to the current date then you can easily add the days in Laravel blade. so you can see our following example.
Add days to current date Using Carbon
The following example code we add 7 days to the current date using carbon.
Example
1 | <input type ="date" value="{{ Carbon\Carbon::now()->addDays(7)->format('Y-m-d') }}" /> |
Add days to current date
The following example code we add 7 days to the current date.
Example
1 | <input type ="date" value="{{ date('Y-m-d', strtotime("+7 day")) }}" /> |
Read Also
Laravel 8 QR Code Generator Tutorial With Example
How To Add Days To Current Date In Php
Laravel 8 Vue JS Fullcalendar Example Tutorial
Please follow and like us: