Skip to content

Commit

Permalink
Merge pull request #1 from mannysoft/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
mannysoft authored Sep 19, 2019
2 parents 6c14ee2 + be4b327 commit ba99b03
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
}
],
"require": {
"php": ">=7.0.0"
"php": ">=7.2.0"
},
"autoload": {
"psr-0": {
Expand Down
2 changes: 1 addition & 1 deletion src/Mannysoft/ApiFormRequest/ApiFormRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ protected function failedValidation(Validator $validator)
*/
protected function failedAuthorization()
{
throw new HttpResponseException(response()->json(['status' => 'failed', 'errors' => 'Forbidden'], 403));
throw new HttpResponseException(response()->json(['status' => 'failed', 'errors' => 'Unauthorized'], 401));
// throw new UnauthorizedException;
}
}

0 comments on commit ba99b03

Please sign in to comment.