Answer the question
In order to leave comments, you need to log in
Requests, can you help with a request?
The essence of the task:
From the combined tables, output some statistics data to an Excel file for download.
I'm sitting scratching my head what's wrong with the code. Help.)
Report::select("report.position", "report.report_date", "phrase.name")
->leftJoin("phrases", function ($join) use ($request) {
$join->on("reports.phrase_id", "=", "phrases.id")
->where("phrase.site_id", "=", $request->site["id"]);
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question