public function edit(Roles $role)
    {
        $this->authorize('edit_role');

        $valueList = $role->permissions()->get()->pluck('id')->toArray();
        return view(
            'RoleManager::role.edit',
            ['role' => $role, 'permissions' => Permissions::all(),
                'valueList' => $valueList]
        );
    }
public function edit(Roles $role)
    {
        $this->authorize('edit_role');

        $valueList = $role->permissions()->get()->pluck('id')->toArray();
        return view(
            'RoleManager::role.edit',
            ['role' => $role, 'permissions' => Permissions::all(),
                'valueList' => $valueList]
        );
    }
public function edit ( Roles $ role ) { $ this -> authorize ( 'edit_role' ) ; $ valueList = $ role -> permissions ( ) -> get ( ) -> pluck ( 'id' ) -> toArray ( ) ; return view ( 'RoleManager::role.edit' , [ 'role' => $ role , 'permissions' => Permissions :: all ( ) , 'valueList' => $ valueList ] ) ; }
Show the form for editing the specified resource.

@param Roles $role

@return \Illuminate\Http\Response
Show the form for editing the specified resource .