
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. so we will give you a simple example of how to Add days to date in Laravel.
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(add date carbon laravel).
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")) }}" /> |
Please follow and like us: