src/Support/Str.php
public static function endsWith($haystack, $needle)
    {
        return $needle === '' or (($temp = mb_strlen($haystack) - mb_strlen($needle)) >= 0 and mb_strpos($haystack, $needle, $temp) !== false);
    }
public static function endsWith($haystack, $needle)
    {
        return $needle === '' or (($temp = mb_strlen($haystack) - mb_strlen($needle)) >= 0 and mb_strpos($haystack, $needle, $temp) !== false);
    }
public static function endsWith ( $ haystack , $ needle ) { return $ needle === '' or ( ( $ temp = mb_strlen ( $ haystack ) - mb_strlen ( $ needle ) ) >= 0 and mb_strpos ( $ haystack , $ needle , $ temp ) !== false ) ; }
Determine if string ends with the supplied needle.

@param string $haystack
@param string $needle

@return bool
Determine if string ends with the supplied needle .