Pagination in Search
Closed this issue · 2 comments
progintYasin commented
سلام عزیز
من کد زیر را توی searchController استفاده کردم برای ساخت صفحه بندی
کد کار میکنه ولی وقتی روی دکمه های صفحه بندی میزنم اون موقع تمامی ردیف های دیتابیس را برمیگردونه
$search = EloquentBuilder::to( Domains::class, [ 'domain_name' => $request['domain_name'], 'amount' => $request['amount'], 'category' => $request['category'], ] )->paginate(5);
mohammad-fouladgar commented
@boobProgrammer
If you wish to append all current query string values to the pagination links you may use the withQueryString
method:
{{ $users->withQueryString()->links() }}
Please read this section of document: https://laravel.com/docs/7.x/pagination#displaying-pagination-results
progintYasin commented
thank you mohammad
this work'd to me
Thankssssssssssss