noehassiel / preview-bridge
Lets a Laravel site be reviewed inside the noehassiel client portal: allows framing and reports the page the client is on.
v0.1.0
2026-10-27 17:14 UTC
Requires
- php: ^8.3
- illuminate/http: ^12.0|^13.0
- illuminate/support: ^12.0|^13.0
Requires (Dev)
- orchestra/testbench: ^10.0|^11.0
- pestphp/pest: ^4.0|^5.0
- pestphp/pest-plugin-laravel: ^4.0|^5.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
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, dropsX-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