ogunsakin01/laravel-video-demos
A Laravel package for integrating video demos into your application. It provides a straightforward way to organize and display demo videos, making it easy to showcase product features, tutorials, or workflows with minimal setup.
This release materially improves the package as a TPM-leverageable demo-video pipeline: rehearsal catches broken AI plans before expensive recording, page inspection handles dynamic Laravel/Inertia/API-driven labels, and first-class separate-frontend support extends coverage from monolithic Laravel apps to Vue/React SPA products. From a TPM perspective, the package is evolving from “AI records a demo” into “repeatable demo-as-code with bounded cost and explicit failure semantics.”
VIDEO_DEMO_FRONTEND_URL mode fits API-first Laravel backends with separate Vue/React frontends, which is a common product architecture. The signed-header sample-data routing avoids CORS changes, reducing integration friction. Rehearsal-on-a-copy-of-sample-DB is the right architectural trade-off: it protects production data, catches plan errors early, and keeps failures inside the repair budget.session (including Sanctum cookie SPA), sanctum-token, jwt, and custom via VideoDemo::signInUsing(...) cover most real-world SSO/Passport/custom-session cases. The custom callback is the escape hatch that makes the package viable for enterprise auth without forking. Page checks for SPAs—server errors, 401/403 for the signed-in user, frontend sign-in redirects—are sensible pre-AI gates./api proxies, session/cookie Sanctum SPA auth, bearer-token Sanctum, JWT, and custom SSO/Passport sign-in. Teams without a separate frontend see no behavior change, which keeps adoption incremental.VIDEO_DEMO_REHEARSE=true and a seeded sample database. Prove one happy-path flow with session auth before enabling frontend mode. Then add VIDEO_DEMO_FRONTEND_URL, choose the correct VIDEO_DEMO_SIGN_IN mode, and validate that API requests from the frontend carry the signed header and land in the video’s sample database. Only then enable page looks for flows with translation keys, database-driven labels, or third-party frontend pages.VIDEO_DEMO_REHEARSE, VIDEO_DEMO_PAGE_LOOKS, VIDEO_DEMO_FRONTEND_URL, VIDEO_DEMO_SIGN_IN, VIDEO_DEMO_TOKEN_KEY), so config drift is a real risk. The custom sign-in callback is the compatibility valve for Passport, SSO, and bespoke session handling. Teams using Sanctum cookie SPA auth should verify CSRF/session behavior end-to-end, because 419 responses now fail steps and can burn repair budget. The label-based text-box fix is a low-risk correctness improvement but should be regression-tested on forms with repeated roles.limits.max_repairs; CSRF/419, expired Sanctum tokens, frontend sign-in redirects, and 401/403 page checks can block recording; page inspection may expose sensitive UI text if redaction is incomplete; production-data videos bypass rehearsal and carry higher quality/security risk; custom sign-in callbacks can fail silently without good observability.How can I help you explore Laravel packages today?