I have a select2 field like which accepts multiple attribute:

```
<div class="col-lg-5 m-input--solid">
    <select class="form-control m-select2 m-input--solid" id="m_select2_3" name="collegeCourses" multiple>
        @foreach($courseCategories as $courseCategory)
        <optgroup label="{{$courseCategory}}">
            @foreach($courseNames->$courseCategory as $courseName)
            <option value="{{$courseName}}" >
                {{$courseName}}
            </option>
            @endforeach
        </optgroup>
        @endforeach
    </select>
</div>

```

Note that I have specified `multiple` in my select form.

example input:
[![enter image description here](https://i.stack.imgur.com/FaW1t.png)](https://i.stack.imgur.com/FaW1t.png)

But the $request has only the last selected value!!
[![enter image description here](https://i.stack.imgur.com/MU6Wj.png)](https://i.stack.imgur.com/MU6Wj.png)

also manually checking also displays that $request has only last value

```
$input = Input::all();
$roles = $input["collegeCourses"];
echo $roles; //output: Mrs. Eldora Blick

```

What is going wrong here?