B
B
BonBon Slick2016-11-08 21:27:47
Laravel
BonBon Slick, 2016-11-08 21:27:47

Laravel 5.3 search without Scout?

There, as I understand it, it is paid because it is based on the Algolia cloud service, please tell me how to do a search here without it?
For example, here is a search form:

<form action="/product/search" method="post">
          {{ csrf_field() }}
            <input type="text" name="search_inp"  >
            <input type="submit">
          </form>

route
Route::post( 'products/search', '[email protected]' );

Controller
public function search(Request $request){
  return $reques->search_inp;
}

Or how would you do?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrzej Wielski, 2016-11-08
@BonBonSlick

https://github.com/jarektkaczyk/eloquence
For small projects use Eloquence Searchable, you don't need a scout.

S
Stanislav Pochepko, 2016-11-08
@DJZT

Algolia is one of the drivers. First, read about search engines like elasticsearch. And then you will understand everything.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question