/** * Show the form for creating a new resource. * * @return \Illuminate\Http\Response */ public function create() { $offices = Office::all(); return view('document.create'); }
/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function getEdit($id) { $roles = Role::all()->lists('display_name', 'id'); $offices = Office::all()->lists('name', 'id'); $user = User::with('roles.perms')->findOrFail($id); return view('admin.users.edit_user', compact('user', 'roles', 'offices')); }