skip to Main Content

SQL generated by Laravel doesn't work, but if I run the SQL direct on PhpMyAdmin it works

I was trying to get the name of Users in my system and I use the following code on PHP Laravel: $course_assessments = CourseAssessment::where('canvas_assignment_id', '=', $canvas_assignment_id) ->join('assessment_submissions', 'assessment_submissions.courses_assessments_id', '=', 'course_assessments.id') ->join('users', 'users.id', '=', 'assessment_submissions.evaluated_user') ->groupby('users.name') ->get(); When I run the…

VIEW QUESTION
Back To Top
Search