Skip to content

Instantly share code, notes, and snippets.

@byrmylmz
Last active November 26, 2021 16:33
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 byrmylmz/fe00bb7ae0b506eb162180097d97f1fd to your computer and use it in GitHub Desktop.
Save byrmylmz/fe00bb7ae0b506eb162180097d97f1fd to your computer and use it in GitHub Desktop.
Advance Join For Laravel
<?php
$evaluations=DB::table('evaluations')
->join('people', function ($join) use($project) {
$join->on('evaluations.people_id', '=', 'people.id')
->where('evaluations.projects_id', '=', $project);
})->get();
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment