teamtnt / laravel-scout-tntsearch-driver

Driver for Laravel Scout search package based on https://github.com/teamtnt/tntsearch
MIT License
1.09k stars 142 forks source link

i have issue in traslate package #330

Closed vahidalvandi closed 2 years ago

vahidalvandi commented 2 years ago

i need just search in current lang , i use searchable trait in another model with use "astrotomic/laravel-translatable": "^11.5",

         $rows = page::whereHas('translations', function ($query) use ($q) {
                $query->search($q);
            })->take(50)->get();

it return Call to undefined method Illuminate\Database\Eloquent\Builder::search()

stokic commented 2 years ago

ok can you please stop opening double issues in both packages, you've already got the answer.

vahidalvandi commented 2 years ago

oh yes , i think mistake in none laravel , then i send in this

vahidalvandi commented 2 years ago

i need join to parent table for check is_draft ,...

please help me . database structure is post post_trans

serchable trait is in post_trans model and setting is in post tabel

stokic commented 2 years ago

this is a laravel/php issue/problem. it has nothing to do with packages. Again, please stop spamming repositories. If you have general questions ask them on https://stackoverflow.com