-
Notifications
You must be signed in to change notification settings - Fork 0
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
Did not work as expected #1
Comments
ModelNotFoundException is thrown when Model::findOrFail. Didn't quite catch that: Could you please explain in more detail, so i could fix this isue. |
Real problem is "trash". "trash" and "show" is conflict but not always. "/resource/{resource}" and "/resource/trash", because there is no id number "trash". This trigger my ModelNotFoundException. I think this is a loader some order problem. I create a similar package in. app/App/Route. If add namespace to composer.json with PSR-0, sometimes run sometimes not run. I fix; this way, open autoload_namespaces.php and move my App/Route namespace at top. At the last I add this namespace with PSR-4, now always work. And I move "trash" to before "show" in code, $resourceDefaults. |
Could it be as simple as to put ->where('id', '[0-9]+'); so trash will never be match for that pattern, Thanks for feedback, will try to find time and fix it till weekend. |
Additional methods not work for me. Error message is "ModelNotFoundException", this is my Model::findOrFail() on show() method.
For sample not run confirm method, it's seek "confirm" as resource id and there is no id "confirm".
The text was updated successfully, but these errors were encountered: