public function edit($id) { $spending = Spending::with('employee')->find($id); $employees = Employee::where('location_id', '=', Auth::user()->location_id)->get(); $menu = 'finance'; return View::make('spendings.edit', compact('spending', 'employees', 'menu')); }