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

Tarasovych's avatar

Make an input for time and date

I can make input for time or date like this:

Form::time
Form::date

How'd I make input for time+date (for saving as timestamp 'created_at')?

0 likes
1 reply
Tarasovych's avatar
Tarasovych
OP
Best Answer
Level 1

{!! Form::input('datetime','published_at', date('Y-m-d H:i'), ['class' => 'form-control']) !!}

1 like

Please or to participate in this conversation.