Skip to content
Discussion options

You must be logged in to vote

As far as I know this is not possible inside the search field itself.

A possible workaround (if you are OK to have a filter instead of the search bar), is to create a text filter: https://backpackforlaravel.com/docs/5.x/crud-filters#text-1. Then you can change the menu link of your list from https://website.test/admin/product to something like https://website.test/admin/product?myfilter=test. This way the admin will see the preset filter when they visit the list, but later on they would have to remove/update the filter value and not the search field if they want to change the results.

You can find some other possible solutions that require modifying the data table itself here: https://st…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by anjanrs
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants