Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

david2000's avatar

Form for the hours

I have 2 fields which are beginHour and endHour in format dateTime.

$table->dateTime('beginHour');
$table->dateTime('endHour');

In my form HTML, is possible to encode the hours ??

<div class="form-group{{ $errors->has('beginHour') ? 'has-error' : '' }}">
                <label for="form-group-input-1">Hour start</label>
                <input type="datetime" name="beginHour" id="beginHour" class="form-control" required="required" value="{{ old('beginHour')}}"/>
                {!! $errors->first('beginHour', '<span class="help-block">:message</span>') !!}
          </div>
0 likes
2 replies

Please or to participate in this conversation.