By calling pluck()
, an array of types is already being returned for car types.
So just use it just like the Laravel Collective:
{!! Form::label('Vehicle Type', 'Vehicle Type') !!}
{!! Form::select('vehicle_type', $cartype, null, ['class' => 'form-control']) !!}
Notice I also changed your double curly braces. Double curly braces exit the output - if the facade Form
returns HTML code, you want it to be non-isolated.
Additional information on creating drop-down lists using the Laravel Collective; https://laravelcollective.com/docs/5.4/html#drop-down-lists
, :
{!! Form::label('Vehicle Type', 'Vehicle Type') !!}
{!! Form::select('vehicle_type', $cartype, old('vehicle_type', $vedit->vehicle_type), ['class' => 'form-control']) !!}