/** * Determine if a given string ends with a given substring. * * @param string $haystack * @param string|array $needle * @return bool */ function ends_with($haystack, $needle) { return Illuminate\Support\Str::endsWith($haystack, $needle); }