Skip to content

2.6.3

Choose a tag to compare

@3m1n3nc3 3m1n3nc3 released this 10 May 22:20
· 81 commits to main since this release

What's Changed

New Features

  • Named API resource routes — routes registered via apiResource() are now automatically assigned a name derived from the route path (e.g. account.books.d.show), making them referenceable by name across the application.

  • Inferred param namesapiResource() can now infer the route parameter name from the base path (e.g. /books:book) instead of defaulting to :id. Requires @h3ravel/support to be installed.

Configuration

Set inferParamName: true in your router config to opt in:

Router.configure({ inferParamName: true })

Router.apiResource('/account/users', UserController)

Defaults to false — fully backwards compatible, existing routes are unaffected.

Full Changelog: 2.6.1...2.6.3