src/Access/UserAccess.php
public function removeRoleBySlug($slug): int
    {
        $role = $this->roles()->where('slug', $slug)->first();

        return $this->roles()->detach($role);
    }
public function removeRoleBySlug($slug): int
    {
        $role = $this->roles()->where('slug', $slug)->first();

        return $this->roles()->detach($role);
    }
public function removeRoleBySlug ( $ slug ) : int { $ role = $ this -> roles ( ) -> where ( 'slug' , $ slug ) -> first ( ) ; return $ this -> roles ( ) -> detach ( $ role ) ; }
Remove Role Slug.

@param $slug

@return int
Remove Role Slug .