lara131141's avatar

Executing commands from a route file

Hi, I have a collector.php command which uses the pcntl_async_signals(true);. If I run the php artisan run:collector command it just runs fine. If I call this command from the webserver with localhost/collector it returns me a Call to undefined function App\Console\Commands\pcntl_async_signals()

I have included "ext-pcntl": "*", in my composer.json but still no luck. What am I missing? Do I need to include some "use foo;"?

0 likes
2 replies

Please or to participate in this conversation.