Acoustep\EntrustGui\Http\Controllers\UsersController::destroy PHP Method

destroy() public method

DELETE /roles/{id}
public destroy ( integer $id ) : Response
$id integer
return Response
    public function destroy($id)
    {
        if (!config('entrust-gui.users.deletable')) {
            abort(404);
        }
        $this->gateway->delete($id);
        return redirect(route('entrust-gui::users.index'))->withSuccess(trans('entrust-gui::users.destroyed'));
    }