when I query a user"s information, including editing a user"s information
when the user exists and there is no such data time in the database, Laravel reported me such an error
(2amp 2) NotFoundHttpException
No query results for model [AppModelUser].
data has not been queried, how can we mask this error?
I am a novice!
my own solution is these three
- add a try catch to each execution function
- use _ _ controuct to detect the existence of data
- use a front method
could you tell me how to solve this problem?