Exemple #1
0
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function edit($id)
 {
     return view('roles.edit')->withRoles(Role::find($id))->withPermissions(Permission::all())->withUsers(User::all());
 }
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     return view('permissions.index')->withData(Permission::all());
 }