Let\'s say I want to show a full list of awards with type=\"color\":
Awards Type 2013 Winner ====== ==== =========== Blue Award colo
Currently you can use $join->where:
$join->where
$year = '2013'; $awards = DB::table('awards') ->leftJoin('winners', function($join) use ($year) { $join ->on('awards.id','=','winners.award_id') // "where" instead of "on": ->where('winners.year', '=', $year); } ->where('awards.type','color') ->get();