Last active
November 26, 2021 16:33
-
-
Save byrmylmz/fe00bb7ae0b506eb162180097d97f1fd to your computer and use it in GitHub Desktop.
Advance Join For Laravel
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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