/** * Display a listing of the resource. * * @return Response */ public function index() { return view('admin.roles.index')->with('roles', Role::all()); }
/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit($id) { return view('admin.users.edit')->withUser(User::findOrFail($id))->withRoles(Role::all()); }