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
The show and edit routes may result in errors since we use find($id) which returns null if id is not found.
show
edit
find($id)
This results in a null model being passed to the view.
We should instead use findOrFail which results in 404 if id does not exist.
findOrFail
The text was updated successfully, but these errors were encountered:
I would be happy if you pushed the PR. I'll be checking in the next release.
Sorry, something went wrong.
Sure. Should I fix it as suggested in #24 (Controller signatures should use Models instead of IDs)
This would shorten the code and the controller signatures will match the api controller signatues with already uses Models.
Fix awais-vteams#46 - Fail with 404 for non existstant id
462ae15
Successfully merging a pull request may close this issue.
The
show
andedit
routes may result in errors since we usefind($id)
which returns null if id is not found.This results in a null model being passed to the view.
We should instead use
findOrFail
which results in 404 if id does not exist.The text was updated successfully, but these errors were encountered: