UI
Official Livewire starter kit + Blade/Tailwind
One supported starter establishes coherent UI/auth integration.
Limits: Starter includes Flux; distinguish its free components from paid Pro assets.
PHP product applications with a cohesive UI, auth and queue toolset.
Laravel · Livewire · Blade · PostgreSQL
These recipes and dependency combinations need checking in your actual project before you rely on them.
Paste the guide address into your agent chat, together with what you want to build.
Use cases: SaaS; Administrative and business applications; Server-driven interactive products.
Generator documentation reviewed: 2026-10-23. Evidence: documentation-reviewed; commands not executed.
Use when: A new Laravel application using the official Livewire authentication/UI starting point.
Working directory: A local source-workspace parent outside synchronized storage; my-app must not already exist
Install the official installer only when it is not already available.
composer global require laravel/installerWorking directory: A local source-workspace parent outside synchronized storage; my-app must not already exist
Confirm flags supported by the installed installer.
laravel new --helpWorking directory: A local source-workspace parent outside synchronized storage; my-app must not already exist
Generate the official Livewire starter with explicit PostgreSQL and test choices.
laravel new my-app --livewire --database=pgsql --pest --no-boostWorking directory: The generated my-app directory after configuring its local .env and reviewing migrations
Apply pending migrations to the intended development database.
php artisan migrateWorking directory: The generated my-app directory
Install starter frontend dependencies if the installer has not already done so.
npm installWorking directory: The generated my-app directory
Build the generated frontend assets.
npm run buildUse when: Only when the application needs API endpoints for external, native or browser clients. Use this on the existing Laravel application after creation; the normal Livewire starter remains the web UI baseline.
Working directory: The generated my-app directory
Install Sanctum and create the stateless routes/api.php route file.
php artisan install:apiWorking directory: The generated my-app directory
Inspect API routes and middleware after the API setup.
php artisan route:list --path=api -vUse when: Adding an example Product domain resource.
Working directory: The generated my-app directory
Generate an Eloquent model and companion migration.
php artisan make:model Product --migrationUse when: The existing products table needs an example description field.
Working directory: The generated my-app directory
Generate the next migration for an existing table.
php artisan make:migration add_description_to_products_tableUse when: A new interactive server-driven page is required.
Working directory: The generated my-app directory with Livewire 4 installed
Generate an example Livewire page component.
php artisan make:livewire pages::product.createUse when: The Product model needs explicit per-resource permissions.
Working directory: The generated my-app directory with Product model present
Generate a conventional policy for application-specific authorization logic.
php artisan make:policy ProductPolicy --model=ProductChoose the tools your application needs. The brief includes your selections, their purpose and their limits; the complete guide keeps all recommendations and sources.
Official Livewire starter kit + Blade/Tailwind
One supported starter establishes coherent UI/auth integration.
Limits: Starter includes Flux; distinguish its free components from paid Pro assets.
PostgreSQL + Eloquent + Laravel migrations
Conventional ORM and migrations with a production relational store.
Limits: Use constraints; production-engine integration tests; never use migrate:fresh against retained data.
Starter-kit Fortify auth
Existing authentication flow plus resource-level authorization.
Limits: Policies remain application work; managed identity adds external terms/cost.
Laravel policies and gates
Existing authentication flow plus resource-level authorization.
Limits: Policies remain application work; managed identity adds external terms/cost.
Laravel database queue + supervised workers
Simple starting infrastructure with explicit scale-up options.
Limits: Use after-commit dispatch, idempotent jobs, finite retries and worker restarts. Horizon requires Redis.
Pest or PHPUnit from starter; Dusk for key browser flows
Application and browser verification complement each other.
Limits: Use a dedicated test database and install Dusk only in development.
Pint + Larastan/PHPStan + Composer audit
Formatting, static checks and dependency advisory checks expose different failures.
Limits: Install a compatible Larastan version and configure its extension; no audit substitutes for authorization tests.
PHP-FPM web service + worker supervisor + scheduler on chosen host
A conventional process model is a practical default.
Limits: Serve only public/; APP_DEBUG=false; persist uploads; reload workers after releases; paid platforms are optional.
Laravel Boost development dependency
Version-aware documentation and route/schema/log inspection provide concrete context.
Limits: Tools can execute application code; use development credentials and honor maintained repository instructions. A README-only integration is an optional project policy; inspect installed Boost help before opting out of generated instructions.
Laravel framework MIT; self-hostable
Framework use does not mandate a hosting subscription.
Limits: Check each optional asset/package/service license separately.
Laravel Mail
Mailables and queue integration keep delivery in application conventions
Limits: Configure the selected mailer and verified sender; use queued mail where required, after-commit handling and failed-job monitoring. Provider acceptance is not inbox delivery.
Laravel Storage / Flysystem
Storage disks support private local or S3-backed files
Limits: Configure filesystems.php; install the selected adapter only, authorize downloads and uploads, define size/type limits and retention. Ephemeral deploy disks are not durable shared storage.
Laravel broadcasting + Reverb when self-hosted sockets are required
Private channels integrate realtime application events
Limits: Use the installed broadcasting setup; configure Echo, channel authorization, queued events and a supervised Reverb process. Verify TLS/proxy/scaling and reconnect; broadcast is not durable replay.
Build with the stack’s strengths
Laravel combines conventional routes, middleware, authentication guards/providers and database migrations. Livewire components combine PHP behavior with Blade rendering. Recommendation: use these conventions for connected forms and business screens; keep server authorization and domain writes explicit instead of treating public component properties as trusted state.
Version scope: Laravel 13.x and Livewire 4.x documentation fetched 11 October 2026. These are documentation scopes, not proof of installed compatibility; inspect composer.lock, PHP version, queue/session/cache drivers and current Livewire component format before implementation. · Reviewed 2026-10-11 · Evidence: documentation-reviewed · Source: inputs/research/migrations-server.json
For an existing application
These are documented options and proposed checks. Inspect the actual source application before adopting a transition.
Inventory table identifiers, casts/nullability, timestamps, constraints and side effects currently attached to writes. Migrations evolve the schema; Eloquent models do not automatically reproduce another runtime’s callbacks.
Recommendation: keep the existing writer authoritative, add compatible fields and move one domain operation at a time. Let one named migration runner own shared tables and keep old readers functional during the rollback window.
Laravel database migrations and the selected PostgreSQL schema, with application operations reused by controllers/Livewire/workers. Recommendation: delay destructive schema contraction until all old readers retire.
Recommendation: restore the old writer before contracting fields; preserve additive schema and reconcile writes accepted by Laravel.
Recommendation: conventional schema and application ownership can make changes reviewable in one maintained application.
Requires: Explicit writer transfer, tested value mappings and a single schema owner.
Tradeoffs: Both runtimes remain constrained by the shared schema; reversal does not recreate deleted business data.
Record connection, queue, PHP job class, serialized model identifiers/relationships, timeout, retry_after, failures and delayed/running work. Model arguments may be re-fetched when the worker executes.
Recommendation: keep old consumers for old payloads; route new categories to isolated Laravel queues. Transfer producers and each schedule owner together. Account for ready, delayed, failed, retry and in-flight work before retiring the old backend.
ShouldQueue jobs on an intentionally selected database/Redis/SQS connection, with supervised workers and explicit attempts/timeouts. after_commit or afterCommit delays dispatch until commit; recommendation: use a durable outbox for a required recoverable commit-to-broker handoff.
Recommendation: stop the new producer, keep consumers for accepted payload versions and reconcile external effects before restoring old queue routing.
Recommendation: a job category can move without rebuilding the entire backlog.
Requires: Versioned payload fixtures, isolated queues and retained old consumers.
Tradeoffs: Two queue systems may remain temporarily; serialized framework objects are not a portable cross-runtime API.
Capture guard/provider, account mapping, session driver, cookie/encryption configuration, remember-me behavior, expiry and logout. The current docs default to database sessions; the application may use another driver.
Recommendation: retain a named identity authority or qualified session exchange; share cookies only after full-format fixtures pass. Map old per-resource permissions into every Livewire/server action and keep concurrent session semantics explicit.
Laravel authentication guard/provider plus a selected session store and resource authorization. Session blocking needs a supported atomic-lock cache driver and is unavailable with cookie sessions.
Recommendation: retain old session/exchange support until the cohort can return, while preserving every revocation and account mapping.
Recommendation: explicit session/account ownership can preserve user continuity during feature migration.
Requires: Qualified identity/session mapping and common revocation rules.
Tradeoffs: Lock-capable session coordination adds a store dependency; a shared database alone does not prove cookie compatibility.
Capture client protocol, event name/payload, private/presence channel identity, authorization endpoint and queue connection. ShouldBroadcast dispatches broadcast work; event production and broadcast execution are separate concerns.
Recommendation: retain the old endpoint for old clients and bridge versioned domain events to the selected Laravel broadcaster. Route a stable room/user cohort including reconnects; designate one publisher per committed domain change.
Laravel broadcasting with an explicitly chosen supported driver and client integration, plus working queue workers when required. Defer transactional events until commit with the documented mechanism; recommendation: persist domain state for reconnect recovery.
Recommendation: preserve old event names/endpoints and stop new publication before restoring the old publisher; reconcile already-visible state.
Recommendation: backend events can update multiple authorized clients.
Requires: Configured broadcaster, workers and matching event/client contracts.
Tradeoffs: Livewire alone does not remove those operational pieces; changing the broadcaster protocol may require a bridge or client rollout.
Inventory cached values, serialization, TTLs and invalidation separately from locks, unique jobs, scheduler coordination and sessions. Laravel supports several cache stores with different capabilities.
Recommendation: version namespaces for changed representations and keep coordination on the same qualified central store. Move reconstructible values separately; never globally flush a shared backend during cutover.
Selected Laravel cache driver for disposable cached data; a supported central store for atomic locks across servers. Recommendation: use explicit dedicated stores/namespaces for distinct ownership boundaries.
Recommendation: restore previous cache routing and rebuild from domain data; preserve lock/session store ownership until a separate qualified transition.
Recommendation: a cache backend can change independently of domain storage when contents are reconstructible.
Requires: Verified invalidation, serialization and coordination inventory.
Tradeoffs: Lock owners and dependent scheduler/session features may still prevent retiring the old backend.
List scheduler definitions, timezones, overlapping task prevention, worker lifecycle and cache-backed coordination. Laravel schedules and old cron/Celery/Rails schedules may describe the same business action.
Recommendation: give each scheduled action one logical owner. Transfer it at an explicit boundary; Laravel onOneServer coordinates Laravel instances using a shared supported store and does not retire an external scheduler.
A documented Laravel scheduler invocation and supervised queue workers. Use withoutOverlapping/onOneServer only with their selected store and intended lock scope; recommendation: document missed-run and business idempotency policies separately.
Recommendation: stop the Laravel schedule before restoring the old owner; reconcile accepted jobs and completed effects before replay.
Recommendation: explicit schedule and worker ownership can prevent accidental duplicate production during rollout.
Requires: Schedule inventory, shared supported locking when needed and a coordinated old-scheduler retirement.
Tradeoffs: A lock prevents concurrent starts within its scope, not every replayed business effect; coexistence still needs two operational inventories.
Run these in the configured application. They are instructions, not recorded passes.
php --version
composer check-platform-reqs
php artisan about
php artisan migrate:status
php artisan test
php artisan dusk
vendor/bin/pint --test
vendor/bin/phpstan analyse
composer audit
npm run buildOriginal source review: 2026-10-10. Core guidance rechecked: 2026-10-13. Check scope.