This is an example of sending an API request using Laravel with valid CSRF tokens.

The idea for this example is basically a habit breaking support system, when you feel the urge to do a negative habit instead of doing you just hit the button to acknowledge the feeling and let it pass.