Search by

noehassiel / preview-bridge

noehassiel

Lets a Laravel site be reviewed inside the noehassiel client portal: allows framing and reports the page the client is on.

Package info

github.com/noehassiel/preview-bridge

pkg:composer/noehassiel/preview-bridge

Statistics

Installs: 35

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v0.1.0 2026-10-27 17:14 UTC

This package is auto-updated.

Last update: 2026-10-27 17:17:19 UTC


README

Lets a Laravel site be reviewed inside the noehassiel client portal. Install it in the client project; turn it on only on the preview server.

When enabled it:

  • lets only the portal show the site in an iframe (Content-Security-Policy: frame-ancestors, drops X-Frame-Options);
  • adds a small script that tells the portal which page the client is on, so change requests arrive with the exact page.

When disabled (the default) it does nothing: no script, no headers.

Install

composer require noehassiel/preview-bridge

Configure

# Preview server only. Like APP_DEBUG: keep it false everywhere else.
PREVIEW_BRIDGE=true
PREVIEW_BRIDGE_PORTAL=https://noehassiel.com

Optional: php artisan vendor:publish --tag=preview-bridge-config.

Test

composer install
vendor/bin/pest