Skip to content

Conversation

istiak-tridip
Copy link
Contributor

Laravel added support for Single Action/Invokable Controller since v5.6. According to the documentation:

When registering routes for single action controllers, you do not need to specify a controller method. Instead, you may simply pass the name of the controller to the router

This PR cleans up the route files by removing the unnecessarily specified __invoke method for the Single Action controllers.

These changes should not cause any breaking changes.

@istiak-tridip istiak-tridip marked this pull request as ready for review February 8, 2023 20:20
@taylorotwell taylorotwell merged commit a2264f6 into laravel:1.x Feb 8, 2023
@istiak-tridip istiak-tridip deleted the invokable-controllers branch February 8, 2023 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants