Level 56
First, remove enctype="multipart/form-data", it has no effect on GET requests.
Second, from my understanding of your description, this should do the trick:
<form method="GET" action="{{ route('this.is.route.name') }}">
<select class="form-control" name="filter[dbfieldname1]">
<option class="hidden" selected disabled>Admin List </option>
<option value="1">Value 1</option>
<option value="2">Value 2</option>
</select>
<select class="form-control" name="filter[dbfieldname2]">
<option class="hidden" selected disabled>Agent List </option>
<option value="1">Value 1</option>
<option value="2">Value 2</option>
</select>
<button type="submit">Search Data</button>
</form>
EDIT: removed @csrf, as it is not needed for GET requests, and it is not a good idea to expose it as a query parameter anyway.
1 like