/** * Show the object list to the user. * * @return Response */ function getIndex() { $grid = DataGrid::source(Object::with('partner')); $grid->add('name', 'Name', true); $grid->add('{{ (string)$partner }}', 'Partner'); $grid->add('address2', 'Ort', true); $grid->add('address1', 'Strasse', true); $grid->edit(url('/object/edit'), '', 'show'); $grid->paginate(10); return view('grid', compact('grid')); }