Based on your code I don't see you using the correct syntax: {{ $table->date('when'); }} ? And add that in the value attribute of your input:
<input type="date" id="date" name="date" value="{{ $table->date('when'); }}">
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I am getting data from form and saving to database but user entered date is not storing
blade
<div class = "form-group mt-3">
<label for = "date"><h5>When</h5></label><br>
<input type = "date" id = "date" name = "date">
</div>
database
$table->date('when');
Based on your code I don't see you using the correct syntax: {{ $table->date('when'); }} ? And add that in the value attribute of your input:
<input type="date" id="date" name="date" value="{{ $table->date('when'); }}">
Please or to participate in this conversation.