Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit79cf70e

Browse files
committed
Don't paginate boards
1 parent53eaf71 commit79cf70e

File tree

3 files changed

+3
-15
lines changed

3 files changed

+3
-15
lines changed

‎src/Http/Controllers/DealController.php‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -428,11 +428,7 @@ public function board(Request $request)
428428
Deal::resetSearchValue($request);
429429
$params = Deal::filters($request);
430430

431-
if (Deal::filter($params)->get()->count() <30) {
432-
$deals = Deal::filter($params)->latest()->get();
433-
}else {
434-
$deals = Deal::filter($params)->latest()->paginate(30);
435-
}
431+
$deals = Deal::filter($params)->latest()->get();
436432

437433
returnview('laravel-crm::deals.board', [
438434
'deals' =>$deals,

‎src/Http/Controllers/LeadController.php‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -422,11 +422,7 @@ public function board(Request $request)
422422
Lead::resetSearchValue($request);
423423
$params = Lead::filters($request);
424424

425-
if (Lead::filter($params)->whereNull('converted_at')->get()->count() <30) {
426-
$leads = Lead::filter($params)->whereNull('converted_at')->latest()->get();
427-
}else {
428-
$leads = Lead::filter($params)->whereNull('converted_at')->latest()->paginate(30);
429-
}
425+
$leads = Lead::filter($params)->whereNull('converted_at')->latest()->get();
430426

431427
returnview('laravel-crm::leads.board', [
432428
'leads' =>$leads,

‎src/Http/Controllers/QuoteController.php‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -483,11 +483,7 @@ public function board(Request $request)
483483
Quote::resetSearchValue($request);
484484
$params = Quote::filters($request);
485485

486-
if (Quote::filter($params)->get()->count() <30) {
487-
$quotes = Quote::filter($params)->latest()->get();
488-
}else {
489-
$quotes = Quote::filter($params)->latest()->paginate(30);
490-
}
486+
$quotes = Quote::filter($params)->latest()->get();
491487

492488
returnview('laravel-crm::quotes.board', [
493489
'quotes' =>$quotes,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp