RDM LABSPORTUGUÊS

Technical article/ · 7 min read

The Laravel ecosystem on a map

Laravel Saga · Season 0 · Episode 11

We've reached the last episode of Season 0. And I want to start with a confession many people share: when you arrive at Laravel, the names are intimidating. Sail, Herd, Forge, Vapor, Cloud, Horizon, Pulse, Reverb, Octane, Sanctum, Inertia, Livewire... It looks like an infinite universe, and it's hard to know what's essential and what's optional.

The good news is that this universe fits into a few categories. Today we'll build the map: what is the framework core, what are official packages, what is frontend, what is a development tool and what is infrastructure. And, at the end, I'll connect everything we've seen this season with the saga that comes next.

Layer 1: the framework core

These components come in the laravel/framework package. They're the main subject of the saga, and you'll recognise several concepts from previous episodes:

ComponentWhat it doesRelated episode
Service ContainerCreates objects and injects dependencies07
Service ProvidersRegister and configure services07
RoutingConnects URLs to controllers01, 02
MiddlewareLayers around the request05, 08
ValidationValidates input01, 10
Eloquent ORMActive Record for the database08
BladeTemplates compiled to PHP09
QueuesAsynchronous work in workers03, 09
EventsObserver for side effects08, 09
Cache, Session, Filesystem, MailServices with swappable drivers08
SchedulerScheduled tasks without dozens of crons—
BroadcastingReal-time events to the browser—
ArtisanThe framework's command line03

I want to highlight Artisan, because it will be your companion throughout the saga. Besides generating code, it's the best window you have for peeking at the application's inner workings:

bashphp artisan about              # version, environment, drivers and caches
php artisan route:list -v      # routes and each one's middleware
php artisan config:show cache  # the configuration, already resolved
php artisan model:show Post    # a model's columns, relations, casts and observers
php artisan event:list         # events and their listeners
php artisan tinker             # an interactive console with the application loaded

If you don't use tinker day to day yet, start now. It will spare you a lot of dd() scattered through the code.

Layer 2: official packages

These are packages maintained by the Laravel team itself, but installed separately, with Composer. You only add what you need.

Authentication and users

PackageWhat it's for
SanctumAuthentication for SPAs (by cookie) and simple API tokens
PassportA full OAuth2 server, for when third parties will access your API
FortifyThe authentication backend, with no interface (login, registration, 2FA)
SocialiteLogin with Google, GitHub, Facebook and others

Performance and execution

PackageWhat it's for
OctaneKeeps the application in memory (FrankenPHP, Swoole, RoadRunner), as we saw in episode 03
HorizonDashboard and configuration for queues on Redis
ReverbIts own WebSocket server for real-time broadcasting
EchoThe JavaScript library that receives broadcast events

Observability

PackageWhat it's for
TelescopeInspects requests, queries, jobs and exceptions during development
PulseA health dashboard for the application in production (slow routes, usage, queues)

Product and business

PackageWhat it's for
CashierSubscriptions and billing with Stripe or Paddle
ScoutFull-text search with Meilisearch, Typesense, Algolia or the database itself
PennantFeature flags

Code quality

PackageWhat it's for
PintThe code formatter we saw in episode 05
DuskTests running in a real browser

And, speaking of tests, Pest deserves a mention. It was created by a community member and is now the most used testing framework in new Laravel projects, offered as an option alongside PHPUnit when you create a project.

Artificial intelligence

PackageWhat it's for
Laravel AI SDKA unified API for text, agents, tools, embeddings, images and audio, with several providers (episode 10)
Laravel MCPExposes your application's features to AI clients through the Model Context Protocol
Laravel BoostGives coding agents your project's context (versions, documentation, schema), improving what they generate

Layer 3: the frontend

Here Laravel gives you freedom. There are very different paths for building the interface, and they all get along well with the same backend:

One backend, four paths to the interfaceLaravel backend to Blade: the simplest. Laravel backend to Livewire: reactive in PHP. Laravel backend to Inertia + React/Vue: modern SPA. Laravel backend to JSON API: JSON backend.Laravel backendroutes, models, rulesBladeHTML on the serverLivewirecomponents in PHPInertia + React/VueSPA, no separate APIJSON APIany front end, Sanctumthe simplestreactive in PHPmodern SPAJSON backend
One backend, four paths to the interfaceLaravel backend to Blade: the simplest. Laravel backend to Livewire: reactive in PHP. Laravel backend to Inertia + React/Vue: modern SPA. Laravel backend to JSON API: JSON backend.Laravel backendroutes, models, rulesBladeHTML on the serverLivewirecomponents in PHPInertia + React/VueSPA, no separate APIJSON APIany front end, Sanctumthe simplestreactive in PHPmodern SPAJSON backend
One backend, four paths to the interface

So you don't start from scratch, there are official starter kits. They create a project with authentication, layout and configuration ready, in React, Vue and Livewire variants. And Vite is the default asset bundler.

bashlaravel new myblog   # the installer asks which starter kit and testing framework to use

Layer 4: the development environment

ToolWhat it is
HerdA native environment for macOS and Windows, with PHP, NGINX and tools ready to go
SailA Docker-based environment, configured by a compose.yaml
php artisan serveA built-in server for quick tests (never use it in production)

Here's a bit of trivia that closes a loop: Herd installs and configures, for you, exactly the NGINX and PHP-FPM combination we studied in episodes 02 and 03. Now you know what it's doing behind the scenes.

Layer 5: infrastructure and operations

ServiceModelWhen it makes sense
ForgeProvisions and manages your own servers (AWS, DigitalOcean, Hetzner...)You want control over the servers, without configuring everything by hand
VaporServerless deploys on AWS LambdaUnpredictable traffic spikes and infrastructure on AWS
Laravel CloudA managed platform, with database, cache, queues and autoscalingYou don't want to look after servers
NightwatchProduction monitoring (exceptions, performance, jobs, queries)Observability tailor-made for Laravel

And once again the previous episodes show up. Forge configures NGINX and PHP-FPM for you. Cloud and Vapor hide all of that. And Octane changes PHP's very execution model.

The complete map

Putting all the layers together, the ecosystem looks like this:

Infrastructurewhere the app lives
  • Forge
  • Vapor
  • Cloud
  • Nightwatch
Server / Runtimetakes the request and runs PHP
  • NGINX + PHP-FPM
  • FrankenPHP
  • Octane
Applicationwhat you install and write
Frontend
  • Blade
  • Livewire
  • Inertia (React/Vue)
  • Vite
laravel/frameworkthe core
  • Container
  • Providers
  • Routing
  • Middleware
  • Validation
  • Eloquent
  • Queues
  • Events
  • Cache
Packages
  • Sanctum
  • Horizon
  • Reverb
  • Scout
  • Cashier
  • Pennant
  • Pulse
  • Telescope
  • AI SDK
  • MCP
Your code
  • domain
  • use cases
  • integrations
The foundation
  • PHP 8.3+
  • Composer
  • PSRs
  • Symfony components
Developmentnever ships to production
  • Herd
  • Sail
  • Pint
  • Pest
  • Dusk
  • Boost
The Laravel ecosystem

Seen like this, the infinite universe from the start of the episode has become a map with an address for everything, hasn't it?

Looking back: what Season 0 built

Before moving on, I want you to see the road we've travelled, and how each episode prepares a part of the saga:

Season 0 episodeWhat you'll recognise in the saga
01 · HTTPThe Request object, the 419 and 422 codes, the session and CSRF
02 · NGINXWhy everything starts in public/index.php
03 · How PHP runsWhy Laravel boots on every request, and what changes with Octane
04 · Modern PHPThe #[...] attributes and autowiring through Reflection
05 · Composer and PSRsvendor/autoload.php, the PSR-11 container and PSR-15-style middleware
06 · OO and SOLIDThe contracts in Illuminate\Contracts and the swappable drivers
07 · IoC and DIThe Service Container and Service Providers
08 · Design patternsFacades, Pipeline, Managers and Eloquent
09 · ArchitectureLean controllers, Services, Actions and the domain
10 · The age of AIThe AI SDK, vector search and the same patterns as always

What to take into the saga

  • The ecosystem divides into core, official packages, frontend, development environment and infrastructure.
  • The core, laravel/framework, is what the saga will dissect.
  • The official packages follow the same patterns as the core; understanding the core means understanding the ecosystem.
  • Artisan is your best tool for investigating what happens inside.

End of Season 0, start of the saga

If you've made it this far, I want to genuinely congratulate you. Think about what you know now: what an HTTP request is, how it passes through NGINX, how PHP runs it, how Composer finds classes, why code should depend on abstractions, how a container assembles objects on its own and which patterns hold the framework up.

That's no small thing. It's the foundation many people only put together after years of stumbling.

Now it's time to put all of it to work. In the saga, we'll follow a single request, from the moment it reaches public/index.php until the response goes back to the browser, opening every door along the way. And you'll see the concepts from Season 0 appear one by one, each in its place.

The journey starts with the Prologue: the map of the journey. See you there.

References and further reading

The core and official packages

Frontend

Environment and infrastructure

Testing