We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
A model reference is used to update, but only the id is given to delete.
update
delete
There's even a find call to check the model exists in the controller https://github.com/gravure/laravel-json-api/blob/master/src/Controllers/ResourceController.php#L91
find
What's the reason behind sending only the id as parameter ? In order to use Eloquent's delete method we need to run find a second time !
The text was updated successfully, but these errors were encountered:
Good point. Should be a model I guess.
Sorry, something went wrong.
I've created an improved ResourceController on my own install, I'll submit it as a PR here so you can have a look
No branches or pull requests
A model reference is used to
update
, but only the id is given todelete
.There's even a
find
call to check the model exists in the controller https://github.com/gravure/laravel-json-api/blob/master/src/Controllers/ResourceController.php#L91What's the reason behind sending only the id as parameter ? In order to use Eloquent's
delete
method we need to runfind
a second time !The text was updated successfully, but these errors were encountered: