Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[1.x] Clean up route definition for Single Action Controllers #249

Merged
merged 1 commit into from
Feb 8, 2023
Merged

[1.x] Clean up route definition for Single Action Controllers #249

merged 1 commit into from
Feb 8, 2023

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