I'm trying to setup a cron job to run a custom Laravel command, however, on my production server php runs as cgi-fcgi and therefore App::runningInConsole() returns false (which checks if the sapi is "cli"). Because of this, my custom command is not defined when running "php artisan list" via the command line (and therefore also when the cron job runs).
Can I override App::runningInConsole() in bootstrap/start.php (or somewhere else), and if so, how would I go about doing that?
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community