Skip to content

Instantly share code, notes, and snippets.

@vaporic
Created July 7, 2016 04:01
Show Gist options
  • Save vaporic/7d284abc8d7202b087eab5d7bd49b2c8 to your computer and use it in GitHub Desktop.
Save vaporic/7d284abc8d7202b087eab5d7bd49b2c8 to your computer and use it in GitHub Desktop.
Default option in select Laravel
{!! Form::select('mark', ["" => "Selecciona una marca"] + App\Models\Marcas::lists('mark', 'id')->all(), (isset($cars)) ? $cars->marca->id : null, ['class' => 'form-control car_mark']) !!}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment