18. Cron & Scheduled Tasks
QuickList automatically expires advertisements that have passed their end date. This is handled by a scheduled task that must be triggered by the server’s cron.
18.1. Configure the Node binary path
The scheduled command shells out to a Node.js script, so set NODE_BIN in your .env to your Node executable path (e.g.
C:/Program Files/nodejs/node.exe on Windows, or /usr/bin/node on Linux).
18.2. Add the Laravel scheduler to cron
Add a single cron entry that runs Laravel’s scheduler every minute:
* * * * * cd /path-to-your-admin-panel && php artisan schedule:run >> /dev/null 2>&1
Laravel then runs the ad:expire command hourly, which flags ads past their expiresAt as expired and clears featured flags past featuredExpiresAt.
Please Note:
The admin panel also ships with one-off Node utility scripts in storage/app/firebase/ (seeding countries/states, migrations, reconciliation). These are run manually with node and a valid credentials.json; they are not part of the recurring cron.
