**Here is my select option**

```
 <select name="category[]" id="categories"
class="js-example-basic-single form-control"multiple>
@foreach ($category as $element)
<option value=" {{$element->id}}}"{{ (old("category[]") == $element->id ? "selected":"") }}>
{{$element->name}}
</option>
 @endforeach

  </select>

```

I can't get the old value ,What I'm doing wrong?
how can i get the old value ?
thanks.