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
findOrFail时可以添加错误信息 例如 $userCompany->where(['code' => $company_code])->findOrFail(‘公司不存在’);在catch异常DataNotFoundException时,可以得到对应的错误信息
$userCompany->where(['code' => $company_code])->findOrFail(‘公司不存在’);
The text was updated successfully, but these errors were encountered:
No branches or pull requests
findOrFail时可以添加错误信息
例如
$userCompany->where(['code' => $company_code])->findOrFail(‘公司不存在’);
在catch异常DataNotFoundException时,可以得到对应的错误信息The text was updated successfully, but these errors were encountered: