public function getPerm() { $this->data['modul'] = ['page', 'product', 'slideshow', 'category', 'user']; $this->data['roles'] = Role::all(); return view('backend.user.permissions.index', $this->data); }
/** * Show the form for editing the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function edit($id) { return view('admin.edit.user', ['currentEditedUser' => User::find($id), "roles" => Role::all()]); }