Skip to content
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

findOrFail时如何可以添加错误信息 #28

Closed
xiongxin opened this issue May 17, 2018 · 0 comments
Closed

findOrFail时如何可以添加错误信息 #28

xiongxin opened this issue May 17, 2018 · 0 comments

Comments

@xiongxin
Copy link

findOrFail时可以添加错误信息
例如
$userCompany->where(['code' => $company_code])->findOrFail(‘公司不存在’);在catch异常DataNotFoundException时,可以得到对应的错误信息

@liu21st liu21st closed this as completed Jul 12, 2019
@ghost ghost mentioned this issue May 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants