Reputation: 303
I am making a functionality in my app that listen for tweets that contains some hashtags. I use this way of implementing the that functionality. I am also using a Laravel 5.4 on php 7.1.
I made a back end where users can add, to a table in database, new hashtags to be listened. So I get all hashtags from database and start to listen.
The problem that i have is that when someone add new hashtag i need to restart the listener so that new hashtag to be added. The only way to stop the listener is ctrl+c keyboard combination. Can I do stop/restart that artisan command with some PHP/Laravel code?
Upvotes: 2
Views: 1735