# GetAnyBus for IonBlade

Major Vehicle Exchange · GetAnyBus Laravel v69 · December 4, 2026

The two ZIPs are one installation. Part 1 contains the Laravel application, locked PHP dependencies, Sales Desk, buyer pages, vehicle photos, and finance PDFs. Part 2 contains the article media. Extract both into the same private parent directory. They merge into a single folder named `GetAnyBus-Laravel`. Preserve the directory structure and hidden files, including `.env.example` and `public/.htaccess`.

## Updating from Laravel v68

This release updates the contact row, homepage inventory shortcuts, and Bus Gallery. The article media in Part 2 is identical to the Laravel v68 media archive. On a fresh installation, extract the v69 website ZIP and the v68 article-media ZIP into the same private parent directory. For an existing installation, stage the v69 application with its public assets and reuse the article media. Retain the existing production environment, application key, SQLite database, and uploaded photos when switching releases. Sign in with the existing staff account and check the saved gallery order after updating.

## Requirements for this build

Use PHP 8.4.1 or later in the 8.x series with DOM, PDO SQLite, GD, mbstring, OpenSSL and the core Laravel modules. The certified local configuration used PHP 8.4.27, Laravel 13.45.0 and SQLite. PHP CLI and the domain's web PHP handler must have the same required extensions. SQLite needs JSON functions, local disk locking and write access to its containing directory. The application uses PHP per request. Browser JavaScript, gallery controls and dealership Google Apps Scripts are included. Production serving requires neither Node.js, npm, a Node process nor a front-end build. Composer dependencies are already in `vendor/`.

## Install and activate

1. Back up the current website, database, uploaded media, rewrite rules, and PHP settings. Extract into a fresh directory outside the public document root. Keep the old release available for a rollback. Save a coherent copy of current business records before the final switch.
2. Point the domain's document root at the extracted `GetAnyBus-Laravel/public` directory. Only that subdirectory should be web-accessible. On Apache or compatible LiteSpeed, enable the included `.htaccess` rules, URL rewriting and forwarding of the Authorization header. Nginx needs its equivalent front-controller rule, typically `try_files $uri /index.php?$query_string;`, together with its normal PHP handler for index.php. Preserve paths, query strings, request methods and cookies. If the account has a fixed public_html directory, have IonBlade map it to this project's public directory.
3. At the hosting layer, provision TLS for both getanybus.com and www.getanybus.com, redirect the HTTP and www variants to https://getanybus.com, and retain the path and query string. Static photos, PDFs and CSS are served by the host. When TLS terminates at a reverse proxy, configure its exact trusted address in `TRUSTED_PROXY_IPS` and have the proxy replace forwarded protocol and client address headers. The PHP application uses `APP_URL` for sign-in, form origins and integrations.
4. From the application root, run the following as the dealership site's PHP service user, using the same PHP release as the domain. Let that user write to `database`, `storage`, and `bootstrap/cache`. Configure host upload and request limits to accept 3,000,000-byte JPEG requests. A PHP post limit of 8 MB accommodates the application limits.

   ```sh
   php tools/check-host.php
   umask 077
   cp .env.example .env
   php artisan key:generate --force
   ```

   Use the copy and key-generation commands on the first install. Preserve the private production environment and its existing key on future updates. Set `APP_URL=https://getanybus.com`, `APP_ENV=production`, `APP_DEBUG=false`, and `SESSION_SECURE_COOKIE=true`. For a separate acceptance hostname, set APP_URL to that exact HTTPS origin. Store secrets in the private host configuration.
5. Install a clean CRM with the command below, or import a v68 private snapshot first using the instructions below. The source includes the public catalog and empty private table definitions. The dealership's live customer, subscriber, sales and staff-password records are separate.

   ```sh
   php artisan dealer:install
   php artisan dealer:user majorvehicles@gmail.com owner
   php artisan dealer:user greatbusesforsale@gmail.com manager
   php artisan dealer:user majorvehiclesoperations@outlook.com manager
   ```

   The command prompts privately for a dealership password. Charlie's two approved email addresses share his owner login. Sales managers have access to the Sales Desk, inventory, blog publishing and accounting. Use Team access to assign a writer or accountant to their own email, then run `php artisan dealer:user EMAIL writer` or `php artisan dealer:user EMAIL accountant`. Writers prepare articles and translations for a sales administrator to publish. Accountants have the sold-vehicle register and its Excel export. Each worker can choose a username under My account. Re-running dealer:user resets the password and expires existing sessions. `php artisan dealer:revoke EMAIL` revokes credentials.
6. Before opening traffic, request `/healthz`, check the English and Spanish homepages, a listing with photos, and staff sign-in at `/auth/sign-in`. Recheck `/?stock=A5431`, `/wp-sitemap.xml`, and any important old URLs from the dealership's search traffic. Submit one controlled inquiry, find the ticket in the Sales Desk and check a workbook export. TLS installation, IonBlade permissions, external services and any additional historical URLs require verification on that account.

## Connect the two inboxes, the Sheet and newsletters

After staff sign in, open `/staff/google-setup.html` for incoming mail, inquiry notifications and the shared tracker. Set three different long random values in `MVE_MAJOR_MAIL_KEY`, `MVE_GREAT_MAIL_KEY` and `MVE_SHEET_KEY`. Set the matching key privately in each dealership-owned Google Apps Script. Set SITE_ORIGIN to the installed site's HTTPS origin. Follow the included guide to authorize the triggers. Verify an email arrives in each intended inbox, a reply attaches to the original ticket, and the Sheet receives the same number. Optionally set a referrer-restricted Google Places browser key for live reviews.

For arrival emails, use `/staff/arrival-setup.html` and configure the separate arrival sender key from the Inventory Desk. Test with a controlled recipient before enabling the sender. “Publish listing only” posts the bus. “Publish and email subscribers” queues the first announcement. Updating an existing live bus or restoring it from Trash does not send another announcement. The customer unsubscribe link and subscriber status travel with the business database. Refresh configuration if changing any values after the host has cached Laravel configuration.

## Preserve existing business records

The default private database is `database/database.sqlite`. The default uploaded photo directory is `storage/app/private/photos`. Keep both together, and keep them outside the web root. They need to survive future releases. Put the database in a durable private directory with DB_DATABASE, and use a durable storage directory or a host-managed mount for uploaded photos. If setting a different LARAVEL_STORAGE_PATH, supply it as a server-level environment variable for both web and CLI, with the framework's session, cache, view, log and private photo subdirectories present.

For a v68 Node installation, pause source writes and delivery triggers for the final copy. Take a consistent SQLite snapshot and export the paired UUID-named uploaded photos. Supply the snapshot and the photo directory to the PHP importer. An empty directory is appropriate if there were no uploaded photos. Use a private destination that does not yet exist.

```sh
php tools/private-data.php import-v68 /private/source/app.sqlite /private/source/photos /private/getanybus-import
(cd /private/getanybus-import && sha256sum -c SHA256SUMS)
```

The importer validates the v68 business schema, table counts, relationships, matching photo references, decodable JPEGs and checksums. It preserves records, uploads, ticket numbers and roles. Imported mail sender credentials are disabled and uncertain sends are marked for review. Local passwords are provisioned with dealer:user. Set DB_DATABASE to the resulting database.sqlite, copy its photos into the private storage directory for the new release, and run dealer:install. Keep the original source intact. Reconcile ticket counts, a seller photo, a published stock and an accountant record before resuming customer traffic. A WordPress export or raw D1 SQL dump needs separate preparation as a compatible snapshot.

## Backup and recovery

Use a fresh destination for each run. The command takes a consistent SQLite snapshot and copies the immutable private photo objects with a checksum manifest. On an installation with no uploaded photos, create its empty private photos directory first.

```sh
php tools/private-data.php backup /private/live/database.sqlite /private/live/photos /private/backups/snapshot-001
(cd /private/backups/snapshot-001 && sha256sum -c SHA256SUMS)
```

Retain protected off-host copies and a separate protected copy of the host environment. To restore, verify the manifest and copy the database and photos into a fresh private location. Point the isolated application at the copies, sign in, open a ticket and view a photo before switching traffic. If reverting after a live switch, capture new tickets, sales or uploads received since the switch and reconcile outbound notices before turning the previous site back on.

## Repeat local acceptance checks

With PHP 8.4+ and Python 3, run `python3 tests/workflows.py` and `python3 tests/private_data.py`. With Python lxml installed, `python3 tests/public_pages.py` checks the public catalog, canonicals, media and redirects. The workflow uses disposable SQLite databases and test recipients. Node is optional on a QA workstation for exercising the included Google Apps Script with simulated Gmail and Sheets. To repeat the browser checks, install Python Playwright and Chromium on the QA workstation and run `CHROMIUM=/path/to/chromium python3 tests/browser.py`. These QA tools are independent of serving the website.

Laravel's deployment guide covers public document roots and web-server permissions. https://laravel.com/docs/13.x/deployment
