Add support for finding a user by external ID.

This commit is contained in:
Dane Everitt 2018-02-07 21:56:11 -06:00
parent 2e693067b8
commit a9c1946319
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
7 changed files with 91 additions and 6 deletions

View file

@ -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;