src/Sluggable/SluggableTranslatedTrait.php
public function scopeWhereSlug($query, $slug, $locale = null)
    {
        return $query->whereHas('translations', function ($query) use ($slug, $locale) {
            return $query->whereSlug($slug, $locale, true);
        });
    }
public function scopeWhereSlug($query, $slug, $locale = null)
    {
        return $query->whereHas('translations', function ($query) use ($slug, $locale) {
            return $query->whereSlug($slug, $locale, true);
        });
    }
public function scopeWhereSlug ( $ query , $ slug , $ locale = null ) { return $ query -> whereHas ( 'translations' , function ( $ query ) use ( $ slug , $ locale ) { return $ query -> whereSlug ( $ slug , $ locale , true ) ; } ) ; }
Scopes query for slug on translated attribute

@param \Illuminate\Database\Eloquent\Builder $query
@param string                                $slug
@param string                                $locale
@return $this|null
Scopes query for slug on translated attribute