1
Good afternoon.
I use Laravel 5.5 and for forms I use laravelcollective.
I mount a select this way:
$locals = Local::get()->pluck('codigolocal', 'id');
and the result is a select with the value = id
and description equal to the code.
My problem is that I need to show beyond the code, also the description:
Something like $locals = Local::get()->pluck(['codigolocal','descricaolocal'], 'id');
You can do this?
Thank you.
Which bank?
– novic
I use mysql 5.6
– Marcos Birro