use IlluminateSupportStr; $myString = 'This is from itsolutionstuff.com website.'; $contains = Str::contains($myString, 'itsolutionstuff.com'); // true