🔄 Licensing
Updating the Script
Before You Update
Updates are distributed as a ZIP archive via your purchase receipt or account at trafficexchangescript.com. Do not apply an update without completing the pre-update checklist below.
Pre-Update Checklist
- [ ] Back up your database. Export a full MySQL dump before touching any files. See Backups for the recommended procedure.
- [ ] Back up your
.envfile. Your.envfile contains all your credentials and configuration — keep a safe copy before overwriting any files. - [ ] Back up your
storage/app/directory. This folder contains uploaded files (avatars, ad images, etc.) that are not in the script package. - [ ] Read the release notes. Every update comes with a changelog. Check whether the update contains database migrations — if it does, you must run
php artisan migrateafter updating files. - [ ] Put the site in maintenance mode (optional but recommended for busy sites):
bash php artisan down
Applying the Update
Shared Hosting (cPanel)
- Download the new script ZIP from your account.
- Upload the ZIP to your server via cPanel File Manager or FTP.
- Extract the ZIP into a temporary directory (not your live directory).
- Do not overwrite your
.envfile. Copy all other files from the extracted archive into your live installation directory, overwriting existing files. - If the update includes a new
.env.example, compare it to your existing.envand add any new variables — do not replace your current.env. - If the release notes mention new migrations, run:
bash php artisan migrate --forceIf you do not have SSH access, contact support for migration assistance. - Clear the application cache:
bash php artisan config:clear php artisan cache:clear php artisan view:clearWithout SSH, delete the contents ofbootstrap/cache/via File Manager (keep the directory itself). - Bring the site back online if you put it in maintenance mode:
bash php artisan up
VPS
- Download or pull the new version files.
- Put the site in maintenance mode:
php artisan down - Copy the new files into your installation directory, preserving your
.envandstorage/directory. - Install/update Composer dependencies:
bash composer install --no-dev --optimize-autoloader - Run database migrations:
bash php artisan migrate --force - Clear and rebuild caches:
bash php artisan config:cache php artisan route:cache php artisan view:cache - Restart queue workers so they pick up the new code:
bash php artisan queue:restart - If using Reverb for WebSocket, restart the Reverb server.
- Bring the site back online:
php artisan up
After the Update
- Browse the site as a member and as an admin to confirm nothing is broken.
- Check
storage/logs/laravel.logfor any new errors introduced by the update. - If the update adds new
.envvariables (listed in the changelog), configure them in Admin → Settings or directly in.envas instructed.
Troubleshooting Update Issues
Q: After the update, I see errors that were not there before. What should I do?
A: First, check storage/logs/laravel.log for the exact error. Common post-update issues:
- Missing config values — the update added new
.envvariables that are not in your file. Check the updated.env.exampleand add any missing keys. - Cached views are stale — run
php artisan view:clearandphp artisan config:clear. - Migrations not run — if you forgot to run migrations, run
php artisan migrate --forcenow.
Q: Can I roll back an update?
A: The safest rollback is to restore your database backup and your backed-up files. If you only need to roll back the database schema, you can attempt:
php artisan migrate:rollback
However, this only rolls back the most recent batch of migrations. For a complete rollback, use your full database backup.
Always back up before updating. If an update goes wrong and you have a current backup, recovery is straightforward. If you do not have a backup, recovery may not be possible.

Screenshots
