spatie/laravel-searchable

More than one condition (Filter)

josendulip opened this issue · 1 comments

In this package i cannot find a way to integrate more than one condition.
For example:

`<form action="{{route('search-biograph')}}" method="get">
        <input type="hidden" name="_token" value="{{csrf_token()}}">
               <div class="input-group mb-3">
                        <input type="text" class="form-control form-control-lg badge-pill" 
 placeholder="Search Bio" aria-label="search bio" aria-describedby="button- 
                                   addon2" name="query" >  {{-- form-control-lg --}}
                                <div class="input-group-append">
                                    <button class="btn btn-default  badge-pill" type="submit" id="button-addon2"> Search</button>
                                </div>
                            </div>
                            <div class="row">
                                <button type="button" class="btn btn-default btn-sm">Search</button>
                                <div class="col-2">
                                    <select class="custom-select input-" name="bio" id="inputGroupSelect01">
                                        <option value="">Biograph</option>
                                        <option value="has">Exist</option>
                                        <option value="not have">Does not exist</option>
                                    </select> 
                                </div> 
                                <div class="col-2">
                                    <select class="custom-select input-" name="age_more_than" >
                                        <option value="">age</option>
                                        <option value="1">More than  40+</option>
                                        <option value="2">Less than 40-</option>
                                    </select> 
                                </div> 
                     </div>
           </form`

The package is built for using only one search query.