How about the search that laracasts.com is using: https://laracasts.com/series/search-as-a-service
and then you can use their filters or facets:
I have followed a tutorial online to build a pagination page but it didn't had anything related to the button. I have made a button to orderBy some fields but when the button is clicked it appends to the end of the URL the &orderBy=<filter> and it keeps adding.
HTML code
Ordenar por: <a href="{{ Request::url() }}?{{ Request::getQueryString() }}&orderBy=preco_hora">€/h</a> | <a href="{{ Request::url() }}?{{ Request::getQueryString() }}&orderBy=stars">evaluation</a> |
If I click the €/ht orders by the correct order: `?distrito=Aveiro&profissao=Advogado&orderBy=preco_ho. But if I click at `evaluati it appends to the ` UR : `?distrito=Aveiro&orderBy=preco_hora&profissao=Advogado&orderBy=sta. It's working but I wouldn't like to appear this long string after clicking another filter. I would like to replace `orderBy=preco_ho for `orderBy=sta and not have two `order.
Any suggestion or any Laravel method to help me?
Please or to participate in this conversation.