Пример #1
0
 public function getPerm()
 {
     $this->data['modul'] = ['page', 'product', 'slideshow', 'category', 'user'];
     $this->data['roles'] = Role::all();
     return view('backend.user.permissions.index', $this->data);
 }
Пример #2
0
 /**
  * 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()]);
 }