You are able to display old input data like so-
<input type="text" name="username" value="{{ old('username') }}">
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
In my form , I have this
{{Form::date('date', \Carbon\Carbon::now())}}
In my controller, i did this:
$date = \Carbon\Carbon::parse($request->current_date);
$day = $date->day;
$month = $date->month;
$year = $date->year;
So during edit, I want to pass back the $date,$month,$year that I saved in database back to the blade template form. What is the format I need to pass back to the blade template ?
```{{Form::date('date', 'mm/dd/yyy'}}``???`
The previous solution is buggy as some month & days might be single values in my database. e.g April is 4 in my DB but the display needs it as 04.
Here is the final solution:
<input type="date" name="sale_date" value="{{ \Carbon\Carbon::createFromDate($db->year,$db->month,$db->day)->format('Y-m-d')}}" />
Please or to participate in this conversation.