Ejemplo n.º 1
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $user = \Auth::user();
     $groupevents = Groupevent::all();
     return view('groupevent.index')->with(['user' => $user, 'groupevents' => $groupevents]);
 }
Ejemplo n.º 2
0
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function edit($id)
 {
     $groupevents = Groupevent::all();
     $expense = Expense::findOrFail($id);
     return view('expense.edit')->with(['expense' => $expense, 'groupevents' => $groupevents]);
 }