laravel
laravel copied to clipboard
The console doesn't output anything
I plan to print some logs, but there is no output.
Environment:Win11; PHPStorm

But when I try to run the same code on macos ,it works:
I think you should test the site on the Linux/macos side
This is because Roach uses the logging configuration of your Laravel app for its logger. So it will probably log to your laravel.log file. The easiest way to get the output in your terminal is to temporarily change your LOG_CHANNEL environment variable to stderr before running the spider.
LOG_CHANNEL=stderr php artisan roach:run MySpider