Input::get("array") with Form request

Posted 4 years ago by sger


I have a form which contains the following code:

{!! Form::open(array('url'=>"items/create')) !!}
      <div class="form-group">
        {!! Form::label('name') !!}
        {!! Form::text('name', '', array('class' => 'form-control')) !!}
      <div class="form-group">
        {!! Form::label('item_id', 'Select Item') !!}
        {!! Form::select('item_id', (['0' => 'Item'] + $items), null, array('class' => 'form-control', 'id' => 'test')) !!}
       <div id="items">
      {!! Form::submit('Submit', array('class' => 'btn btn-default')) !!}
      {!! Form::close() !!}

every time i select something from Form::select i'm doing an append to list now on post request i want to pass that info which is in form of:

  • item1
  • item2
  • item3
and retrieve the array like name for example Input::get("name") to get the name i want to do something similar with list items.

Any ideas?

Please sign in or create an account to participate in this conversation.