Questions tagged [laravel-searchable]

Laravel searchable is a 3rd party Laravel package that makes it easy to get structured search from a variety of sources.

Laravel searchable is a 3rd party Laravel package that makes it easy to get structured search from a variety of sources.

Github page

4 questions
2
votes
1 answer

how can we install composer require spatie/laravel-searchable in 5.7 version of laravel

I am setting up search in my project.which includes more than one model to search.Firstly, I tried using scout and scout extended but it does not give much flexibility with where clause.so I thought to have a look to composer require…
anonymous
  • 75
  • 1
  • 8
1
vote
1 answer

How to call a Variable in Models in Laravel

I am trying to call a variable in my Models/Images.php which is for a very good reason but cannot. My variable $langtitle = 'title'.config('app.LANG_COLUMN_CODE'); which I want to use instead of 'title' within protected $searchable Here is my whole…
1
vote
2 answers

Argument 2 passed to Spatie\Searchable\SearchResult::__construct() must be of the type string, null given

im using spatie/laravel-searchable for my website. it works very well in this function: public function index(Request $request) { $results = (new Search()) ->registerModel(Product::class, 'name', 'price','barcode') …
0
votes
1 answer

Laravel Spatie Searchable

I am trying to implement spatie searchable in my project and it is working fine when I am doing plain searches. But if I try to do some filtering it is not working and I have no idea though. I have added my code below: My…
ash
  • 11
  • 3