Skip to content

Instantly share code, notes, and snippets.

View aralovelace's full-sized avatar
😀

April Smith aralovelace

😀
View GitHub Profile
@aralovelace
aralovelace / birthday.php
Created September 4, 2018 14:57 — forked from jokamjohn/birthday.php
Create a birthday laravel
<div class="form-group {{ $errors->has('date_of_birth') ? 'has-error' : '' }}">
{{ Form::label('date_of_birth', 'Date of Birth', ['class' => 'control-label']) }}
<div class="form-inline">
{{ Form::selectRange('date_of_birth[day]', 1, 31, null, ['class' => 'form-control']) }}
{{ Form::selectMonth('date_of_birth[month]', null, ['class' => 'form-control']) }}
{{ Form::selectYear('date_of_birth[year]', date('Y') - 3, date('Y') - 16, null, ['class' => 'form-control']) }}
</div>
{{ $errors->first('date_of_birth', '<span class="help-block">:message</span>') }}
</div>