deegitalbe/laravel-trustup-io-authentification
Laravel integration for Trustup.io authentication. This package helps connect your app to Trustup.io's auth service, secure routes, and handle user identity with minimal setup, making it easier to add Trustup.io login to Laravel projects.
composer require trustup-io/laravel-auth (or the specific Trustup auth package in use), then publish its config: php artisan vendor:publish and pick the Trustup auth config tag. The config file is the first place to look — it is where every service URL and credential the package consumes is defined.TRUSTUP_IO_AUTH_DOCKER_URL, which controls the base URL used when the package talks to a Docker-hosted auth service. The value must now include an explicit scheme, e.g. TRUSTUP_IO_AUTH_DOCKER_URL=http://auth.docker.localhost.TRUSTUP_IO_AUTH_DOCKER_URL at it, and exercise a single authenticated request. If that works, the Guzzle wiring, config resolution, and credentials are all correct and you can move on to real integration.composer show guzzlehttp/guzzle early. v4.0.1 exists specifically because Guzzle 7.13+ tightened how base_uri is handled, so knowing your Guzzle version tells you whether you need this patch at all.config('...') rather than constructing them inline. Every environment (local Docker, staging, production) should differ only by env vars, never by code.auth.docker.localhost will break under Guzzle 7.13+. Make this a convention across all your Trustup-related URLs, not just the docker one, so the next Guzzle bump doesn't bite you again.APP_ENV=local. Keep the override additive so production config stays untouched.Http::fake() (or bind a fake client into the container) and override the relevant config keys per test rather than relying on .env.testing. This keeps tests independent of whether a Docker auth container is running.AuthClient-style class. That gives you one place to handle retries, logging, and the URL resolution logic, and one seam to swap out if the package's API shifts in a future major.Http::globalRequestMiddleware() or the RequestSending/ResponseReceived events let you log outbound auth calls without touching package internals.TRUSTUP_IO_AUTH_DOCKER_URL (or any Trustup env var), run php artisan config:clear in local/dev. In production, make sure config:cache runs during deploy after env vars are in place — cached config snapshots env values at build time.http:// into config defaults. Docker is http, production is almost certainly https. Default the env var to an empty/null value and let each environment supply its own fully-qualified URL, or you'll ship plaintext endpoints to production.config('...docker.url') (or the equivalent key) via php artisan tinker when a request fails. Nine times out of ten the failure is a missing scheme, a trailing slash inconsistency, or stale cached config — in that order.How can I help you explore Laravel packages today?