use Illuminate\Filesystem\Filesystem; $filesystem = new Filesystem(); // Find all PHP files in the current directory $php_files = $filesystem->glob('*.php'); print_r($php_files); // Find all files in the "public/images" directory and its subdirectories $images = $filesystem->glob('public/images/**/*'); print_r($images); // Find all files in the "app" and "database" directories that have the ".php" extension $files = $filesystem->glob('{app,database}/**/*.php'); print_r($files);In the first example, we use `*.php` as our pattern to find all files with a `.php` extension in the current directory. In the second example, the `/**/*` pattern is used to search for all files in the `public/images` directory and its subdirectories. In the third example, we use brace expansion to search for all `.php` files in the `app` and `database` directories and their subdirectories. The `illuminate/filesystem` package is a part of the Laravel framework.