use Illuminate\Support\Str; $str = 'apples'; $singular = Str::singular($str); echo $singular; // Output: apple $str = 'boxes'; $singular = Str::singular($str); echo $singular; // Output: boxIn the above example, `Str::singular()` method is used to convert the given strings to their respective singular forms. Overall, the `Illuminate\Support` package library provides helper classes and functions to simplify common tasks when working with PHP applications in Laravel framework.