Skip to content

v2.1.0

Choose a tag to compare

@vlados vlados released this 12 Feb 11:53
· 7 commits to main since this release

What's New

Pluggable ControllerResolver

Controller resolution is now delegated to a ControllerResolver contract, making the package fully extensible without modifying its source.

  • Contracts\ControllerResolver — interface with a single resolve(string $controller): ?object method
  • Resolvers\DefaultControllerResolver — ships with the package; resolves FQCNs via class_exists() and Livewire component names via app('livewire')->new() (only when Livewire is installed)
  • Bound as a singleton with singletonIf, so apps can override it by binding their own implementation before the package boots

Upgrading from v2.0.x

No breaking changes. The default resolver handles both FQCNs and Livewire component names out of the box.

Full Changelog: v2.0.1...v2.1.0