Пример #1
0
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int $id
  * @return Response
  */
 public function edit($id)
 {
     $user = Sentry::findUserById($id);
     $userGroups = $user->getGroups()->lists('name', 'id');
     $groups = Group::lists('name', 'id');
     return view('backend.user.edit', compact('user', 'groups', 'userGroups'))->with('active', 'user');
 }
Пример #2
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $groups = Group::orderBy('created_at', 'DESC')->paginate(10);
     return view('backend.group.index', compact('groups'));
 }