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 value = id
and description equal to the code.
My problem is that I need to show besides the code, also the description:
Something like $locals = Local::get()->pluck(['codigolocal','descricaolocal'], 'id');
Can you do this?
Thank you.