/** * Display a listing of the resource. * * @return Response */ public function index($id) { $despesa = \App\Despesa::find($id); $rows = \App\DespesaItem::where('despesa_id', $id)->paginate(10); return view('despesaItem.index')->with(compact('despesa', 'rows')); }
/** * Display the specified resource. * * @param int $id * @return Response */ public function show($id) { $row = \App\Despesa::find($id); return view('despesa.show')->with(compact('row')); }