v1.5.16b Update to controller index, added inner join

This commit is contained in:
Neerholt 2021-04-27 12:46:37 +02:00
parent cb690a470d
commit cb60d93c63
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ class MultipleEventsController extends Controller
*/ */
public function index() public function index()
{ {
$multiEvents = MultipleEventsParent::query()->orderBY('id' , 'desc')->get(); $multiEvents = MultipleEventsParent::query()->join("multiple_events", "multiple_events.id", "=", "multiple_events_parent.id")->orderBY('id' , 'desc')->get();
return Response::detect("multiple-events.index", [ "multiEvents" => $multiEvents]); return Response::detect("multiple-events.index", [ "multiEvents" => $multiEvents]);
} }