creating table column for saving date of birth
public function up()
{
Schema::create('userspathik', function (Blueprint $table) {
$table->dateTime('mybirthday');
}
my view code is
<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' => 'selectbody fl']) !!}
{!! Form::selectMonth('date_of_birth[month]', null, ['class' => 'selectbody fl']) !!}
{!! Form::selectYear('date_of_birth[year]', date('Y') - 3, date('Y') - 40, null, ['class' => 'selectbody fl']) !!}
</div>
{!! $errors->first('date_of_birth', '<span class="help-block">:message</span>') !!}
</div>
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2x2GWrF
via IFTTT
Aucun commentaire:
Enregistrer un commentaire