Add support for finding a user by external ID.
This commit is contained in:
parent
2e693067b8
commit
a9c1946319
7 changed files with 91 additions and 6 deletions
|
@ -117,7 +117,7 @@ abstract class ApplicationApiRequest extends FormRequest
|
|||
// an item exists (or does not exist) to the user until they can prove
|
||||
// that they have permission to know about it.
|
||||
if ($this->attributes->get('is_missing_model', false) || ! $this->resourceExists()) {
|
||||
throw new NotFoundHttpException('The requested resource does not exist on this server.');
|
||||
throw new NotFoundHttpException(trans('exceptions.api.resource_not_found'));
|
||||
}
|
||||
|
||||
return true;
|
||||
|
|
Reference in a new issue