How To Add Days To Current Date In Laravel Blade

How To Add Days To Current Date In Laravel Blade

Hello friends,

Today we will show how to add days to current date in Laravel blade. In this example you learn add days to current date. We provide simple example for add days to current date using carbon in laravel blade.

Laravel Blade Add days to current date Using Carbon

<input type ="date" value="{{ Carbon\Carbon::now()->addDays(7)->format('Y-m-d') }}" />

Add days to current date in Laravel blade

<input type ="date" value="{{ date('Y-m-d', strtotime("+7 day")) }}" />

I hope you understand of how to laravel blade add days to current date and it can help you…

Read Also :  Laravel 8 cURL HTTP Request Example