davidhsianturi/laravel-compass
Laravel Compass is an elegant REST client built into your Laravel app. It adds a Vue-powered dashboard where you can browse your routes, build requests, and inspect API responses without leaving your codebase, making endpoint testing quick and convenient.
composer require (dev-only if you're just evaluating), then check whether the service provider is auto-discovered; if not, register it in config/app.php. Publish any config/assets (php artisan vendor:publish --provider=...) and read the published config top to bottom — for this package the domain/host resolution keys are the whole game.{tenant}.example.com) is in play, the raw request host is now accepted as a fallback domain. Understand that branch before wiring anything else./etc/hosts, or use Herd/Valet wildcards) for a test host, hit a route, and dump the resolved domain to confirm the pipeline. Then repeat via a variable domain and via the new host-fallback path.www. variant that doesn't fit the {tenant}.example.com pattern. If you don't want a misconfigured variable domain to quietly resolve to whatever host the request came in on, constrain it (allowlist central/root hosts, or keep a canonical-host map) rather than relying on the pattern to fail closed.saved/deleted events (and on tenant rename/domain change). Don't cache the fallback decision — it depends on the incoming host.$this->get('http://acme.example.com/dashboard'). Build a small data provider covering exact domain, variable domain, host fallback, unknown host (should 404/abort), and central host. Assert the resolved tenant/domain, not just the status code — the new fallback is exactly the kind of thing that returns 200 with the wrong context.tenant:run, job middleware, or a queued "current tenant" id) — don't assume the resolver will fill it in.www. (usually strip or map it, because otherwise www.x.com and x.com resolve differently). Compare against $request->getHost(), not the raw Host header.getHost() may be the internal hostname. Configure TrustProxies so X-Forwarded-Host is honoured — otherwise every request falls through to whatever the fallback does, and with v1.2.1's host fallback that can mean requests silently resolving to an unintended site instead of failing.APP_URL vs. the request host. Route/URL generation and redirects should use the resolved domain's scheme and host, not APP_URL. Mixing them produces cross-domain redirect loops and broken asset URLs, especially with HTTPS termination at the proxy (URL::forceScheme).*.localhost resolution varies by OS/browser, and Valet/Herd/Docker setups rewrite hosts. Test the variable-domain and fallback paths with the same host strings you use in production, or you'll debug the wrong layer.$request->getHost() actually return, (2) does it hit an exact domain, (3) does it match a variable pattern, (4) did the new host fallback fire? Log the resolved domain and which tier matched — a debug flag on the resolver pays for itself the first time a fallback silently kicks in.Domain model hook over forking the resolution middleware; and keep domain creation in one service so cache invalidation and validation (uniqueness, no overlap with existing patterns) happen in one place.ws/lodash/ssri etc.). Those look like the repo's docs/front-end toolchain — including several security advisories (ws, browserslist, lodash, url-parse) — so they carry no action for a PHP-only consumer. The thing to actually regression-test is domain resolution: re-run your suite against hosts that previously 404'd, since they may now resolve via the host fallback.How can I help you explore Laravel packages today?