Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Edgy's avatar
Level 1

How do you create a search functionality in Laravel?

Hi,

I am new to laravel and I want some feedback from professional developers in Laracast. How do you usually create a search from Database? i'm using Eloquent and when I search it in Google, it has 2 options. 1st is the typical search.blade.php and the 2nd is somewhat called Laravel Scout or Algolia. I am confused on these 2 options. Which of these you usually do and why?

Thanks for information.

0 likes
4 replies
topvillas's avatar

Scout is a driver driven indexing and search service. If you want something a bit complex than using LIKE in SQL then it'll really save you some time and effort.

1 like
Edgy's avatar
Level 1

@topvillas

Hi, but using LIKE is secured and safe? I only use 1 function or 1 search only. Do you think do I need Scout for simple function? What is your suggestions?

Thanks

topvillas's avatar
Level 46

If LIKE is working for you then there's no need to use Scout. Tools like Algolia and Elasticsearch provide a huge amount of additional functionality at the cost of more complexity in your models.

Algolia has a free plan, so why not sign up and have muck about with it.

Please or to participate in this conversation.