Backend\UserGroupsController::destroy PHP Метод

destroy() публичный Метод

Remove the specified user groups from storage.
public destroy ( integer $id ) : Response
$id integer
Результат Response
    public function destroy($id)
    {
        try {
            $message = $this->usergroup_manager->deleteUserGroup($id);
            return Redirect::to("{$this->link_type}/user-groups")->with('success_message', $message);
        } catch (Exception $e) {
            return Redirect::to("{$this->link_type}/user-groups")->with('error_message', $e->getMessage());
        }
    }