protected function getTrailingSlash(string $item, bool $trailing) : string
    {
        if (Str::contains($item, '.') || !$trailing) {
            return '';
        }

        return '/';
    }
protected function getTrailingSlash(string $item, bool $trailing) : string
    {
        if (Str::contains($item, '.') || !$trailing) {
            return '';
        }

        return '/';
    }
protected function getTrailingSlash ( string $ item , bool $ trailing ) : string { if ( Str :: contains ( $ item , '.' ) || ! $ trailing ) { return '' ; } return '/' ; }
Check if we should include a trailing slash

@param string $item
@param bool   $trailing
@return string
Check if we should include a trailing slash