2

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.

1

1 Answer 1

7

That worked

{{ Form::input('dateTime-local', 'game_date_time', $game->game_date_time, ['id' => 'game-date-time-text', 'class' => 'form-control']) }}
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.