use Illuminate\Support\Str; // Check if a string starts with a certain prefix Str::startsWith('Hello world', 'He'); // returns true // Check if a string starts with any of multiple prefixes Str::startsWith('Hello world', ['He', 'Hi']); // returns true // Check if a string starts with a certain prefix, case insensitive Str::startsWith('Hello world', 'he', true); // returns true // Check if a string starts with a certain prefix, using a custom offset Str::startsWith('Hello world', 'lo', false, 3); // returns trueThe Str startsWith method is part of the Illuminate\Support package, which is a core package of the Laravel framework. It includes many useful helper functions that simplify common tasks in PHP applications. By using the Illuminate\Support library, developers can save time and improve the readability of their code.