adamwathan / bootforms

Rapid form generation with Bootstrap 3 and Laravel.
MIT License
417 stars 103 forks source link

Custom attribute for each option #142

Open ImArtur opened 6 years ago

ImArtur commented 6 years ago

I have this code: {!! BootForm::select( trans('project.client'), "client_id")->options($clients->mapForSelectForm())->select($project->client ? $project->client->getRouteKey() : null) !!}

Is it possible to add extra attribute to each option?