@@ -11,12 +11,12 @@ |
||
| 11 | 11 | |
| 12 | 12 | public function query() |
| 13 | 13 | { |
| 14 | - return Individual::leftJoin('events as birth', function ($join) { |
|
| 14 | + return Individual::leftJoin('events as birth', function($join) { |
|
| 15 | 15 | $join->on('individuals.id', '=', 'birth.event_id') |
| 16 | 16 | ->where('birth.event_type', '=', 'App\Individual') |
| 17 | 17 | ->where('birth.event_type_id', '=', 1); |
| 18 | 18 | }) |
| 19 | - ->leftJoin('events as death', function ($join) { |
|
| 19 | + ->leftJoin('events as death', function($join) { |
|
| 20 | 20 | $join->on('individuals.id', '=', 'death.event_id') |
| 21 | 21 | ->where('death.event_type', '=', 'App\Individual') |
| 22 | 22 | ->where('death.event_type_id', '=', 3); |