// **** 1
$str = "Hello World!";
// String contains the given value
$contains = str_contains($str, 'World');
// Array of values
$contains = str_contains($str, ['Hi', 'World']);
// **** 2
use IlluminateSupportStr;
$str = "Hello World!";
$contains = Str::contains($str, 'World');