marvinlabs / laravel-html-bootstrap-4

Bootstrap 4 fluent HTML builder
MIT License
42 stars 15 forks source link

Multi-Select support? #37

Closed JamesPoel closed 6 years ago

JamesPoel commented 6 years ago

Could you add multi-select support to a future release? I can ->attribute('multiple') on a select, but I can't pass an array as the values. Thanks 💯

vpratfr commented 6 years ago

It is already supported.

{{ bs()->select('countries', ['FR' => 'France', 'S' => 'Sweden', 'P' => 'Portugal'])
       ->multiple()
       ->value(['P', 'FR']}}