skip to Main Content

Laravel – Nested loop: interval loop brings results for the first iteration of the main loop

I am writing a laravel code in which I need a nested loop in the blade. Here is my controller public function show(string $id) { $transaction = Transaction::findOrFail($id); $subject_ids = DB::connection('transfer') ->table('subjects') ->join('transactions_subjects', 'transactions_subjects.subject_id', '=', 'subjects.id') ->where('transactions_subjects.transaction_id', '=', $transaction->id) ->distinct()…

VIEW QUESTION
Back To Top
Search