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.4] Add apiResource function to Router #19347

Merged
merged 3 commits into from May 27, 2017

Conversation

Projects
None yet
3 participants
@ZapsterStudios
Copy link
Contributor

commented May 25, 2017

The route resource function is very useful but an API doesn't need the create and edit routes. This pull request would allow that functionality with a new apiResource function that would work the same way as the original resource function just without the two unnecessary routes.

Route::apiResource('photos', 'PhotoController');

ZapsterStudios added some commits May 25, 2017

@tillkruss

This comment has been minimized.

Copy link
Member

commented May 26, 2017

Why not add that as macro in your project?

@taylorotwell taylorotwell merged commit 92214c5 into laravel:5.4 May 27, 2017

2 checks passed

continuous-integration/styleci/pr The StyleCI analysis has passed
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details

@ZapsterStudios ZapsterStudios deleted the ZapsterStudios:patch-1 branch May 27, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.