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. |
Unreleased (master)
Section titled “Unreleased (master)”Merged to master after v13.3.0.
- Actuator integration: adds the
moduleshealth indicator, per-module$healthIndicators,module:make-health-indicator, andmodules.actuator.enabled(#2287), plus the read-only/actuator/modulesendpoint (#2286). - Published config precedence: application config and published
config/<module>.phpfiles now override module defaults viamergeApplicationConfig()(#2275). Associative arrays merge recursively; scalars, lists, and[]replace module values. - Inertia v3:
module:publish-inertiaand React, Vue, and Svelte Inertia stubs now target Inertia v3 (#2276, #2283). - Vite 8 and dev server:
package.stubgenerates Vite 8 andlaravel-vite-plugin^3.1(#2281).vite.stubsets per-modulehotFileandmanifest: 'manifest.json'formodule_vite()(#2285). Root Vite builds resolve module asset paths cleanly (#2272). module:prune: resolves short model names, reports unknown modules cleanly, and removes the--pathoption (#2279, #2282). Remove--pathfrom scripts or schedules.- Provider boot lifecycle: merges package config at the start of
register()(#2291) and merges module config inModuleServiceProvider::register()before$providers(#2292). Registers@moduleand Blade component namespaces lazily viacallAfterResolving('blade.compiler'), and skips publish paths andAboutCommandoutside the console. - Laravel Boost assets: moved from
.ai/laravel-modules/toresources/boost/, where Boost reads them (#2267). - Commands and stubs:
module:migrate-refresh --allnow runs on enabled modules only (#2261).- Each destructive command gets its own
prohibit()flag instead of sharing one onBaseCommand(#2264). routes/web.stubdropsauthandverifiedmiddleware (#2262);event-provider.stubdrops unused$shouldDiscoverEvents(#2266).module:model-showresolves short model names (#2270);module:unuseneeds no module argument and firesunused(#2258);module:installsupports per-entrypathinmodules.json(#2269).
- Deprecations (removed in v14): Lumen classes (
LumenModulesServiceProvider,LumenFileRepository,Lumen\Module, #2278) andFileRepository::$stubPath,getStubPath(), andsetStubPath()(#2260). See Deprecations.
13.3.0
Section titled “13.3.0”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, andmodel.stubchanged in 13.3.0. Compare them withsrc/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-configandmodule:make-job-middleware(#2242).module:make-model --attributesfor attribute-style models (#2243).
Fixed:
- Models generated with
--factoryinclude#[UseFactory](#2237).
Faster, with no action needed:
- Module providers skip config scanning on cached web requests (#2230).
- Each
module.jsonis read once per application (#2231). - Module schedules register only when
Scheduleresolves (#2239).
13.2.0
Section titled “13.2.0”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.
Action may be required
Section titled “Action may be required”- Custom
stubs.path: the package ignoresstubs.pathunless'stubs' => ['enabled' => true]is set (#2198). - Custom
paths.generator.<key>withoutnamespace:actions,casts,enums,exceptions,helpers,interfaces,repository,services, andtraitsnow derive their namespace frompath. Setnamespaceexplicitly to keep an older value (#2207). - Generator paths outside
paths.app_folder:module:makeexits 1 and lists invalid keys when a class generator path sits outsideapp_folder. Withapp_folder => '', paths must match their StudlyCase namespace (Providers, notapp/Providers) (#2209, #2225). generate => falseskips owned stub files: settinggeneratetofalseforassets,routes,views, orconfigskips their owned stub files too. For example, disablingassetsskipsvite.config.jsandpackage.json. Set the flag back totrueto restore them (#2223).- Published
route-provider.stubandscaffold/provider.stub: old copies keep working. To enable conditional route blocks and dynamic$providerslists, copy%%START_WEB_ROUTES%%/%%END_WEB_ROUTES%%,%%START_API_ROUTES%%/%%END_API_ROUTES%%, andprotected array $providers = [$PROVIDERS$];fromsrc/Commands/stubs/(#2216, #2180). - Translation auto-discovery without published config: auto-discovery now defaults to
false. Modules usingModuleServiceProviderare unaffected. If a--plainor custom module needs it, publishconfig/modules.phpand set'auto-discover' => ['translations' => true](#2184). - Published translations moved:
module:publish-translationnow writes tolang/modules/{module}instead ofresources/lang/{module}(#2185).- Move previously published files to
lang/modules/{module}and delete emptyresources/lang(whileresources/langexists, Laravel’slang_path()points there instead oflang/). - In older module providers that read
resource_path('lang/modules/{module}'), updateregisterTranslations()tolang_path('modules/{module}').
- Move previously published files to
- Published module config files: non-
config.phpfiles (such assettings.php) now publish toconfig/<module>/<file>.phpinstead ofconfig/<file>.php. Delete stale copies and republish.config.phpstill publishes toconfig/<module>.php(#2186). - Invalid
modules_statuses.jsonor 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).
Behaviour changes
Section titled “Behaviour changes”- Missing module in non-interactive mode: commands without a module name or
--allnow printNo module given. Pass a module name or --all.and exit 1 instead of exiting 0 (#2212). --allwith-n:--allnow selects every module in non-interactive runs too, including destructive commands likemodule:delete --all --force -n(#2187).- Failures exit 1: failing seeders, nested command failures, missing translations in
module:lang, and existing files inmodule:make-middlewareormodule:make-observernow return exit code 1 (#2212, #2215, #2210). module:makewithout a name: non-interactive runs now require a module name (#2210).module:migrate --subpathandmodule:migrate-fresh --pretend:--subpathis now honoured, andmodule:migrate-fresh --pretendis rejected (#2212).- Publishing over existing files:
module:publish-translationandmodule:publish-migrationnow skip existing files unless--forceis passed (#2199). module:prunein schedules: now finds and prunes module models; verify which models it targets (#2197).- Reset and refresh with extra migration paths:
module:migrate-resetandmodule:migrate-refreshnow roll back extra paths registered withloadMigrationsFrom()(#2226). - Rollback and reset connections:
down()now runs on the migration’s$connectionor--databaseoption (#2179). - Duplicate listeners: Laravel event discovery now resolves module listeners in
withEvents(discover: [...]). Remove duplicate manual registrations and re-runevent:cache(#2219). aliasesinmodule.json: now registered for enabled modules; check for alias collisions (#2206).
Extending the package
Section titled “Extending the package”Act only if you subclass these classes:
InstallerandPublisher: redeclare their properties as nullable in subclasses.Publisherdefaults to$force = false(#2181, #2211, #2199).BaseCommandsubclasses overridinginitialize(): callparent::initialize()(#2187).GeneratorCommandsubclasses: remove any duplicateforceoption; the base class defines it (#2210).MigrateCommandsubclasses: the constructor,$migrator, and$migration_listwere removed (#2226).
Deprecated (removed in v14)
Section titled “Deprecated (removed in v14)”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.
New in 13.2.0
Section titled “New in 13.2.0”moduleRefreshPaths()for hot reload of module views with Vite (#2217). See Build module assets with Vite.
The release includes additional bug fixes; the sections above cover every behaviour change.
13.1.0
Section titled “13.1.0”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:installno longer passes module names, versions, paths, or URLs through a shell, preventing command injection from CLI arguments ormodules.json. Failed installs now exit with an error instead of runningmodule:update(#2174). The12.xbranch does not have this fix; only pass trusted inputs on v12 or upgrade to v13. - Production confirmations:
module:migrate-freshandmodule:migrate-rollbacknow ask for confirmation in production. Pass--forcein 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 toresources/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).--pretendworks onmodule:migrate-rollbackandmodule:migrate-reset(#2175).- Module translation loading no longer misses its namespace (#2154).
13.0.0
Section titled “13.0.0”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.