Please format your code.
```
code
```
Backup before doing anything else is a suggestion.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I have written a code to select a specific portion of the data from a table and display it in a new page. It was working fine before. All we did was introduced a new field and then reverted back. I am worried about the impact on the application due to these minor changes. I am using the following code:
public function chargeAwait(Request $request) { $createdDate = Carbon::now()->subDays(7)->toDateString(); $results = Chargeback::where('dispute_status', 'Disputed - Awaiting for Response') // ->whereDate('dispute_date','<=', $createdDate) ->where(function ($query) use ($createdDate) { $query->where(function ($subQuery) use ($createdDate) { $subQuery->where('action', 0) ->whereDate('dispute_date', '<=', $createdDate); }) ->orWhere(function ($subQuery) use ($createdDate) { $subQuery->where('action', 2) ->whereDate('dispute_date', '<=', $createdDate); }); }) // ->where('action',0)->orWhere('action',2) ->orderBy('dispute_date', 'desc')->paginate(pagination_limit()); return view('escalation.chargeawait', compact('results')); }
This code considers cases where dispute status is Disputed - Awaiting for Response and populates it in a new page of the application. It used to do that before. But the page is totally blank.
Any help would be appreciated.
Thanks Raj
Please or to participate in this conversation.