How To Avoid Redirection in Laravel with the Correct Accept Header in POST Requests
In Laravel, if you make a POST request, to a store action that injects a FormRequest, via Postman and you don't specify the correct Accept
header, Laravel will redirect. By default, the generic */*
header is used, which will not prevent redirection. You must explicitly change it to application/json
.