I'm using Laravel 10 With Octane Swoole and PHP 8.2. In any ServiceProvider I use the register() or boot() method, it's being called 24 times at system startup. Example:
public function register(): void
{
echo "service starting";
}
or:
public function boot(): void
{
echo "service starting";
}
using any of the methods, it is returning me in the console:
service starting
INFO Server running…
Local: http://0.0.0.0:80
Press Ctrl+C to stop the server
INFO service startingservice startingservice startingservice
startingservice startingservice startingservice startingservice
startingservice startingservice startingservice startingservice
startingservice startingservice startingservice startingservice
startingservice startingservice startingservice startingservice
It is being called multiple times. Why does it happen?