src/app/Traits/Sluggable.php
protected function getRelatedSlugs($slug, $id = 0)
    {
        return $this->select('slug')->where('slug', 'like', $slug.'%')->where('id', '<>', $id)->get();
    }
protected function getRelatedSlugs($slug, $id = 0)
    {
        return $this->select('slug')->where('slug', 'like', $slug.'%')->where('id', '<>', $id)->get();
    }
protected function getRelatedSlugs ( $ slug , $ id = 0 ) { return $ this -> select ( 'slug' ) -> where ( 'slug' , 'like' , $ slug . '%' ) -> where ( 'id' , '<>' , $ id ) -> get ( ) ; }
Get similar slugs
@param $slug
@param $id
@return mixed
Get similar slugs