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

[5.7] Fixed: Can exclude methods on registered ApiResource #26149

Merged
merged 1 commit into from
Oct 18, 2018
Merged

[5.7] Fixed: Can exclude methods on registered ApiResource #26149

merged 1 commit into from
Oct 18, 2018

Conversation

schursin
Copy link
Contributor

@schursin schursin commented Oct 17, 2018

Summary

Route::apiResource(...)->except(...) is not working correctly.

Description

At this moment we cant exclude methods on registered ApiResource, because method Route::apiResource() based on only option. So if only option is present then except option is ignored.

PR

  • \Illuminate\Tests\Routing\RouteRegistrarTest::testCanExcludeMethodsOnApiRegisteredResource added.
  • \Illuminate\Routing\ResourceRegistrar::getResourceMethods fixed.

@schursin schursin changed the title Fixed: Can exclude methods on registered ApiResource [5.7] Fixed: Can exclude methods on registered ApiResource Oct 17, 2018
@taylorotwell taylorotwell merged commit 8164541 into laravel:5.7 Oct 18, 2018
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