First query show demanded record but when I click page2 it show all record not query demanded record. My lawyer table is
route: Route::get('Search','solicitorClient@search')->name('search');
$search=DB::table('lawyer')
->where([
['specialization','LIKE', '%'.$request->expertise.'%'],
['location','LIKE','%'.$request->city.'%'],
['zip_code','LIKE','%'.$request->zip_code.'%']
])->orderBy('payment_price','desc')
->paginate(3);
I desired to show only lawyer record which is specialization in 'copyright' but i click page2 its show all record other than 'copyright' specialization page 1 url: http://localhost/solicitor/public/Search?expertise=Copyright&city=&zip_code= when i click on page 2 its url change to http://localhost/solicitor/public/Search?page=2