If you do not use forms - for example, for the API - you can follow these steps here https://gist.github.com/ethanstenis/3cc78c1d097680ac7ef0 :
Essentially add the following to your blade or branch header.
<meta name="csrf-token" content="{{ csrf_token() }}">
Install Postman Interceptor, if not already installed, and enable it
Then in your browser go to the site (you need to log in) and check the item or view source to get a token
In Postman, set GET / POST, etc. as necessary, and in your heading create a new pair
X-CSRF-TOKEN tokenvaluetobeinserted235kwgeiOIulgsk
Some people recommend disabling the CSRF token when testing the API, but then you are not really testing it.
If you find that you still have errors, check the answer with preview , since Laravel tends to be fairly explicit with error messages. If nothing returns, check your php_error.log (what it is ever called).
brianlmerritt
source share