TokGrab Upgrade Guide
Before You Start
Always back up:
- Database (export a dump).
.envfile — contains your app key and settings wiring.- Uploaded files under
storage/app/. storage/app/installed.lock— keep this so the installer stays locked.
⚠️ Never replace your existing
.envwith the package's.env.example. If.envis lost, generate a new key and reset your credentials.
Safe Upgrade Flow
- Back up the database and
.env(above). - Download the new package and check its
CHANGELOG.md. - Upload the new files over your existing installation, but do not overwrite:
.envstorage/app/(uploads and the install lock)- If any new database tables are required, run migrations (see below).
- Clear caches (see below).
- Re-test the site and admin.
If the package was built with the release packager
The packaged ZIP already excludes .env, local databases, and logs, so uploading it over your
site is safe for those files.
Running Migrations
With SSH/terminal:
Without SSH (shared hosting):
Some hosts expose a terminal in the panel — use it if available. If not, and the upgrade
includes schema changes, you may need help: temporarily move storage/app/installed.lock
aside, run the installer's migration step, then restore the lock. Back up first, and note
this requires re-confirming database settings.
Clearing Caches
Run these if you have terminal access:
On shared hosting without a terminal, deleting the contents of bootstrap/cache/ and
storage/framework/views/ achieves a similar reset.
After Upgrade — Validation Checklist
- [ ] Homepage loads
- [ ] Search works with a real profile
- [ ] Profile and video pages load
- [ ] Admin login works
- [ ] Admin settings save correctly
- [ ] API test connection passes
- [ ] Ads and branding still render
Rollback
If something breaks:
- Restore the previous package files.
- Restore the database backup (if migrations changed the schema).
- Restore
.envandstorage/app/. - Clear caches and re-test.