/** * Show the form for editing the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function edit($id) { $roles = Role::get(); $user = $this->user->findOrFail($id); $actives = $user->roles()->lists('id')->toArray(); return view('acl::users.create', compact('user', 'roles', 'actives')); }
/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $roles = Role::get(); return view('acl::roles.index', compact('roles')); }