return response($response->body(), $response->status()); In a monolith, you had foreign keys like user_id in the orders table. Now, user_id exists only in Auth DB. In Order DB, you store auth_user_id as a string (UUID) , not a foreign key.
gateway: build: ./gateway ports: - "80:8000" Laravel Microservices- Breaking a Monolith to M...
Install laravel-opentelemetry :
$response = Http::withHeaders([ 'Authorization' => 'Bearer ' . request()->bearerToken() // Pass JWT along ])->get($catalogUrl); In a monolith