src/SluggableScopeHelpers.php
public function scopeWhereSlug(Builder $scope, string $slug): Builder
    {
        return $scope->where($this->getSlugKeyName(), $slug);
    }
public function scopeWhereSlug(Builder $scope, string $slug): Builder
    {
        return $scope->where($this->getSlugKeyName(), $slug);
    }
public function scopeWhereSlug ( Builder $ scope , string $ slug ) : Builder { return $ scope -> where ( $ this -> getSlugKeyName ( ) , $ slug ) ; }
Query scope for finding a model by its primary slug.

@param \Illuminate\Database\Eloquent\Builder $scope
@param string $slug
@return \Illuminate\Database\Eloquent\Builder
Query scope for finding a model by its primary slug .