Tartar
Tartar

Reputation: 5452

Laravel Form Builder datetime input

Is there a Laravel 5 Form Builder equivalent of HTML 5's datatime input field ? I have been searching all day but could not find any.

<input type="datetime-local" class="form-control" id="game-date-time-text" name="game_date_time">

Any help would be appreciated.

Upvotes: 2

Views: 9284

Answers (1)

Tartar
Tartar

Reputation: 5452

That worked

{{ Form::input('dateTime-local', 'game_date_time', $game->game_date_time, ['id' => 'game-date-time-text', 'class' => 'form-control']) }}

Upvotes: 7

Related Questions