Skip to content

Commit

Permalink
Merge pull request #2 from TomHAnderson/feature/readme2
Browse files Browse the repository at this point in the history
Fixed order of parameters for response
  • Loading branch information
TomHAnderson authored Jan 20, 2022
2 parents f2190df + 2c7d131 commit 1f96d4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ composer require api-skeletons/laravel-api-problem
```php
use ApiSkeletons\Laravel\ApiProblem\Facades\ApiProblem;

return ApiProblem::response(401, 'Detailed Unauthorized Message');
return ApiProblem::response('Detailed Unauthorized Message', 401);
```

## Attribution
Expand Down

0 comments on commit 1f96d4c

Please sign in to comment.