Writing advanced Eloquent search query filters
Amo Chohan

Hello, First of all, thanks for this post you did a great job. Then I have a few questions:

  1. What contains the searchable trait?
  2. Wath about the interface Searchable?
  3. Where should I place the trait with the methods?

I have seen the final refactoring using the Searchable trait end implementing the Searchable but I didn’t understand what they really do.

I will appreciate if any of you may help me to figure it out.



Like what you read? Give Daniele Esposito a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.