Laravel + Vue (Inertia) + gRPC: building a simple BFF that talks to a gRPC User service
laravel•Jan 3, 2026

Laravel + Vue (Inertia) + gRPC: building a simple BFF that talks to a gRPC User service

Building a modern Laravel + Vue app with gRPC requires a different approach than REST/JSON. This post shows how to use a BFF pattern to handle requests from the browser and fetch data through a gRPC microservice.

devTo

devTo

Original source

Key summary

This blog post demonstrates how to use gRPC in a modern Laravel + Vue application. It explains the process of defining a contract in a .proto file, generating strongly-typed client/server code, and using a Backend For Frontend (BFF) pattern to handle requests from the browser.

TL;DR

  • Use gRPC for compact serialization and strong typing
  • Define API as a contract in a .proto file
  • Generate client/server code using Buf
  • Use Backend For Frontend (BFF) pattern for browser requests
  • Laravel acts as a proxy to gRPC microservice
  • Commit generated code for demos and fast setup
  • Enable gRPC PHP extension for PHP CLI and FPM
  • Expose a classic JSON API endpoint for browser requests

This content is automatically summarized using AI. For full context, always refer to the original article.

Related posts

Subscribe For New Content Updates

By becoming a member of our blog, you have access to articles and content.