engrnvd / laravel-crud-generator

MIT License
137 stars 51 forks source link

Select option has no "key" => "value" option ? #8

Closed rebootcode closed 7 years ago

rebootcode commented 8 years ago

Sometimes there are key "1" , and value as "Active". There is no option to do it ?

rebootcode commented 8 years ago

Please merge this PR https://github.com/engrnvd/laravel-crud-generator/pull/4 It is important to have "key", "value" pair for select.

Necko1996 commented 7 years ago

When we can expect "key" => "value" fix ?? I try to make it but it crash and only show me (field status) that is active.... If it work tell me who to fix this: {!! \Nvd\Crud\Form::select('status',[1 => 'Da', 2 => 'Ne'], $teren->status)->model($teren)->label("Aktivan")->show() !!}

rebootcode commented 7 years ago

Use :-

LaravelCollective Select form element for the purpose.