Skip to content

Changes in 13.x

This page lists user-visible changes in 13.x and states when you must act. It is compiled from CHANGELOG.md, GitHub releases, and master. To upgrade from version 12, see Upgrade from 12 to 13.

Release Date What you may need to do
Unreleased (master) Unreleased Check config override precedence, Inertia v3 stubs, Vite 8 module stubs, and module:prune option removal.
13.3.0 2026-10-28 Fix scripts passing an empty generator name or a seeder named Seeder. Merge updated stubs if you published them.
13.2.0 2026-10-25 Review Action may be required if you published config/stubs, customised paths, published translations, or script module commands.
13.1.0 2026-10-25 Update if you use module:install (security fix). Pass --force to non-interactive production migration commands.
13.0.0 2026-03-19 Use PHP 8.3 or later. No code changes required.

Merged to master after v13.3.0.

  • Actuator integration: adds the modules health indicator, per-module $healthIndicators, module:make-health-indicator, and modules.actuator.enabled (#2287), plus the read-only /actuator/modules endpoint (#2286).
  • Published config precedence: application config and published config/<module>.php files now override module defaults via mergeApplicationConfig() (#2275). Associative arrays merge recursively; scalars, lists, and [] replace module values.
  • Inertia v3: module:publish-inertia and React, Vue, and Svelte Inertia stubs now target Inertia v3 (#2276, #2283).
  • Vite 8 and dev server: package.stub generates Vite 8 and laravel-vite-plugin ^3.1 (#2281). vite.stub sets per-module hotFile and manifest: 'manifest.json' for module_vite() (#2285). Root Vite builds resolve module asset paths cleanly (#2272).
  • module:prune: resolves short model names, reports unknown modules cleanly, and removes the --path option (#2279, #2282). Remove --path from scripts or schedules.
  • Provider boot lifecycle: merges package config at the start of register() (#2291) and merges module config in ModuleServiceProvider::register() before $providers (#2292). Registers @module and Blade component namespaces lazily via callAfterResolving('blade.compiler'), and skips publish paths and AboutCommand outside the console.
  • Laravel Boost assets: moved from .ai/laravel-modules/ to resources/boost/, where Boost reads them (#2267).
  • Commands and stubs:
    • module:migrate-refresh --all now runs on enabled modules only (#2261).
    • Each destructive command gets its own prohibit() flag instead of sharing one on BaseCommand (#2264).
    • routes/web.stub drops auth and verified middleware (#2262); event-provider.stub drops unused $shouldDiscoverEvents (#2266).
    • module:model-show resolves short model names (#2270); module:unuse needs no module argument and fires unused (#2258); module:install supports per-entry path in modules.json (#2269).
  • Deprecations (removed in v14): Lumen classes (LumenModulesServiceProvider, LumenFileRepository, Lumen\Module, #2278) and FileRepository::$stubPath, getStubPath(), and setStubPath() (#2260). See Deprecations.

Released 2026-10-28. GitHub release v13.3.0.

You must act in two cases:

  • Empty generator name or a seeder named Seeder: generators now reject both and exit with an error (#2246). Pass a valid name.
  • Published stubs: command.stub, config.stub, job.stub, job-queued.stub, and model.stub changed in 13.3.0. Compare them with src/Commands/stubs/ and merge what you want. New stubs (job-middleware.stub, resource-json-api.stub) fall back to package copies automatically.

New:

  • Command and job stubs match Laravel 13 (#2238).
  • module:make-resource --json-api (#2241).
  • module:make-config and module:make-job-middleware (#2242).
  • module:make-model --attributes for attribute-style models (#2243).

Fixed:

  • Models generated with --factory include #[UseFactory] (#2237).

Faster, with no action needed:

  • Module providers skip config scanning on cached web requests (#2230).
  • Each module.json is read once per application (#2231).
  • Module schedules register only when Schedule resolves (#2239).

Released 2026-10-25. GitHub release v13.2.0.

Skip the action items below if you use default generator paths, keep no published stubs, pass module names explicitly in scripts, and use generated module providers. Otherwise, check each group.

  • Custom stubs.path: the package ignores stubs.path unless 'stubs' => ['enabled' => true] is set (#2198).
  • Custom paths.generator.<key> without namespace: actions, casts, enums, exceptions, helpers, interfaces, repository, services, and traits now derive their namespace from path. Set namespace explicitly to keep an older value (#2207).
  • Generator paths outside paths.app_folder: module:make exits 1 and lists invalid keys when a class generator path sits outside app_folder. With app_folder => '', paths must match their StudlyCase namespace (Providers, not app/Providers) (#2209, #2225).
  • generate => false skips owned stub files: setting generate to false for assets, routes, views, or config skips their owned stub files too. For example, disabling assets skips vite.config.js and package.json. Set the flag back to true to restore them (#2223).
  • Published route-provider.stub and scaffold/provider.stub: old copies keep working. To enable conditional route blocks and dynamic $providers lists, copy %%START_WEB_ROUTES%%/%%END_WEB_ROUTES%%, %%START_API_ROUTES%%/%%END_API_ROUTES%%, and protected array $providers = [$PROVIDERS$]; from src/Commands/stubs/ (#2216, #2180).
  • Translation auto-discovery without published config: auto-discovery now defaults to false. Modules using ModuleServiceProvider are unaffected. If a --plain or custom module needs it, publish config/modules.php and set 'auto-discover' => ['translations' => true] (#2184).
  • Published translations moved: module:publish-translation now writes to lang/modules/{module} instead of resources/lang/{module} (#2185).
    • Move previously published files to lang/modules/{module} and delete empty resources/lang (while resources/lang exists, Laravel’s lang_path() points there instead of lang/).
    • In older module providers that read resource_path('lang/modules/{module}'), update registerTranslations() to lang_path('modules/{module}').
  • Published module config files: non-config.php files (such as settings.php) now publish to config/<module>/<file>.php instead of config/<file>.php. Delete stale copies and republish. config.php still publishes to config/<module>.php (#2186).
  • Invalid modules_statuses.json or activator config: invalid JSON, non-empty JSON lists, unknown activator names, and missing activator classes now throw instead of falling back silently. Missing files, empty files, and {} still mean no statuses (#2205).
  • Missing module in non-interactive mode: commands without a module name or --all now print No module given. Pass a module name or --all. and exit 1 instead of exiting 0 (#2212).
  • --all with -n: --all now selects every module in non-interactive runs too, including destructive commands like module:delete --all --force -n (#2187).
  • Failures exit 1: failing seeders, nested command failures, missing translations in module:lang, and existing files in module:make-middleware or module:make-observer now return exit code 1 (#2212, #2215, #2210).
  • module:make without a name: non-interactive runs now require a module name (#2210).
  • module:migrate --subpath and module:migrate-fresh --pretend: --subpath is now honoured, and module:migrate-fresh --pretend is rejected (#2212).
  • Publishing over existing files: module:publish-translation and module:publish-migration now skip existing files unless --force is passed (#2199).
  • module:prune in schedules: now finds and prunes module models; verify which models it targets (#2197).
  • Reset and refresh with extra migration paths: module:migrate-reset and module:migrate-refresh now roll back extra paths registered with loadMigrationsFrom() (#2226).
  • Rollback and reset connections: down() now runs on the migration’s $connection or --database option (#2179).
  • Duplicate listeners: Laravel event discovery now resolves module listeners in withEvents(discover: [...]). Remove duplicate manual registrations and re-run event:cache (#2219).
  • aliases in module.json: now registered for enabled modules; check for alias collisions (#2206).

Act only if you subclass these classes:

  • Installer and Publisher: redeclare their properties as nullable in subclasses. Publisher defaults to $force = false (#2181, #2211, #2199).
  • BaseCommand subclasses overriding initialize(): call parent::initialize() (#2187).
  • GeneratorCommand subclasses: remove any duplicate force option; the base class defines it (#2210).
  • MigrateCommand subclasses: the constructor, $migrator, and $migration_list were removed (#2226).

Version 13.2.0 deprecates the unused legacy lifecycle API: Module and FileRepository boot/register methods, ModuleEvent::BOOT and REGISTER, MigrationLoaderTrait, modules.register.* config keys, and ContractsServiceProvider (#2204, #2196). They remain in 13.x and are removed in v14. See Deprecations for the full list and replacements.

The release includes additional bug fixes; the sections above cover every behaviour change.

Released 2026-10-25. GitHub release v13.1.0.

You must act in two cases:

  • Security fix for module:install: update to 13.1.0 or later. module:install no longer passes module names, versions, paths, or URLs through a shell, preventing command injection from CLI arguments or modules.json. Failed installs now exit with an error instead of running module:update (#2174). The 12.x branch does not have this fix; only pass trusted inputs on v12 or upgrade to v13.
  • Production confirmations: module:migrate-fresh and module:migrate-rollback now ask for confirmation in production. Pass --force in non-interactive scripts (#2173, #2175).

Other changes needing no action:

  • Initial Laravel Boost files shipped under .ai/laravel-modules/ (#2156); a post-13.3.0 change moved them to resources/boost/ (#2267). See Use the package with AI coding assistants.
  • module:migrate <Module> no longer runs application migrations or migrations from similarly named modules (#2171).
  • --pretend works on module:migrate-rollback and module:migrate-reset (#2175).
  • Module translation loading no longer misses its namespace (#2154).

Released 2026-03-19. GitHub release v13.0.0.

This release adds Laravel 13 compatibility (#2138, #2146). Files in src/ and config/ are identical to v12.0.5. Only composer.json changed:

Entry 12.0.5 13.0.0
require.php >=8.2 ^8.3
require-dev Laravel, Testbench, PHPUnit Laravel 12, Testbench 10, PHPUnit 11 or 12 Laravel 13, Testbench 11, PHPUnit 12

The only required action is upgrading PHP to 8.3 or later.