I am using Laravel 5.1. In form I am generating drop down as:
{!! Form::select('ptype', $p_types,null,['class' => 'form-control text-capitalize']) !!}
While in controller $p_types
is set as:
$p_types = PType::lists('name', 'id');
I want to show an option as Select here
on top of drop down. How do I do tat?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire