Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created February 10, 2020 23:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/e492d629d5a6d97c6074b3bbe4c9c467 to your computer and use it in GitHub Desktop.
Save parzibyte/e492d629d5a6d97c6074b3bbe4c9c467 to your computer and use it in GitHub Desktop.
<?php
$idCurso = $request->get("idCurso");
$alumnos = Alumno
::join("alumno_curso", "alumno_curso.id_alumno", "=", "alumnos.id")
->where("alumno_curso.id_curso", "=", $idCurso)
->select("alumnos.*", "alumno_curso.*")
->get();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment