Skip to content
This repository has been archived by the owner on Oct 28, 2020. It is now read-only.

Replacing Route::resource with Route::apiResource #76

Closed
Daniyal-Javani opened this issue Dec 5, 2019 · 1 comment
Closed

Replacing Route::resource with Route::apiResource #76

Daniyal-Javani opened this issue Dec 5, 2019 · 1 comment

Comments

@Daniyal-Javani
Copy link

Hi

I think it would be better to replace this (automatically created by this package)

Route::resource('sliderLinks', 'SliderLinkAPIController', [
    'only' => ['index', 'show', 'store', 'update', 'destroy']
]);

with this:

Route::apiResource('sliderLinks', 'SliderLinkAPIController');
@Daniyal-Javani Daniyal-Javani changed the title Replace Route::resource with Route::apiResource Replacing Route::resource with Route::apiResource Dec 5, 2019
@ajthinking
Copy link
Member

Thats great, thanks! Fixed in v0.1.8

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants