Laravel ecosystem
Choose tools for your project, then see how others use them in real Laravel apps.
Setup
Pick a local PHP environment and the services your app needs.
- HerdRun PHP and serve local sites on macOS or Windows. A good fit for a workstation where you want a native setup.
- SailRun the app and its services in Docker. Consider it when teammates need the same local PHP, database, and Redis versions.
- Starter kitsStart with authentication and a sample UI. Pick the frontend you want the team to maintain before creating the app.
Frontend
Choose between server-rendered components, JavaScript pages, and an admin toolkit.
- LivewireBuild interactive Blade components in PHP. Start here if most of your UI is forms, filtering, and server-side state.
- InertiaKeep routing and controllers in Laravel, with React, Vue, or Svelte pages. Choose it when the team wants a JavaScript UI and can ship the app together.
- FilamentAssemble admin screens from forms, tables, and actions. Map your resources and authorization policies before designing custom dashboards.
APIs & search
Give the right clients access, and pick a search engine only when you need one.
- SanctumChoose session cookies for your own SPA or simple tokens for clients. Keep record-level permissions in policies.
- PassportRun an OAuth 2.0 authorization server when independent third-party clients need delegated access. Budget for client and key management.
- ScoutMake Eloquent models searchable. Try the database engine first, then compare an external engine if you need features such as typo tolerance or faceting.
Async work
Move work off the request path, supervise it, and deliver updates to the browser.
- QueuesTry the database driver for a first worker. Decide which jobs can run twice safely before increasing concurrency or retry counts.
- HorizonSupervise Redis queue workers and inspect throughput, wait times, and failed jobs. Check driver support before choosing it.
- ReverbRun a WebSocket server for Laravel broadcasting. Plan the connection lifecycle and worker monitoring alongside the app.
Testing
Catch regressions in CI and learn what happened during a request.
- PestWrite tests on top of PHPUnit with concise assertions and datasets. Start with a feature test for a real user action.
- LarastanTeach PHPStan about Laravel conventions. Fix one class of errors at a time and run the same analysis in CI.
- TelescopeInspect individual requests, queries, jobs, and exceptions during debugging. Set access and retention explicitly before using it outside local development.
Production
Ship a release you can check and find the regressions that affect real traffic.
- DeploymentStart with the framework’s server requirements, public web root, worker restarts, and health route. Verify each one on a staging release.
- PulseSee slow requests, slow queries, and queue activity on an aggregate dashboard. Use sustained trends to decide what to investigate first.
- NightwatchConsider managed monitoring when you need alerts and detailed production traces. Review what telemetry leaves your infrastructure.
Open-source projects
Start with one flow you can follow through the code. Source links point to the exact revisions reviewed here.
BookStack
A self-hosted knowledge base. Follow how book and chapter permissions inform the decision to show a page.
EntityPermissionEvaluator.phpBagisto
An ecommerce platform organized into Composer packages. Start with the cart and trace how the checkout module is registered.
Checkout/Cart.phpFirefly III
A personal finance manager. Read the transaction endpoint to see validation, persistence, and response transformation in one request.
Transaction/StoreController.phpMonica
A personal CRM. Read how a service checks permissions and links two contacts within a vault.
SetRelationship.phpKoel
A personal music streaming app. Follow the Streamer directory to see how playback is separated from library management.
app/Services/Streamer/Ping CRM
A compact demo from Inertia. Read the contacts controller to see how a Laravel query becomes props for a JavaScript page.
ContactsController.php
Which method waits for the database transaction to commit?
ShipOrder::dispatch($order);ShipOrder::dispatch($order)->afterCommit();