I put a route in laravel which is called by a function in JS and I do not have control of it because it is external, this route is a post method since I need it to be that way but it generates a MethodNotAllowedHttpException as I do to exclude certain routes from this validation.
Note: I have already tried adding it in VerifyCsrfToken in its exception vector, modifying that class file VerifyCsrfToken extends Middleware to a new file called class VerifyCsrfToken extends BaseVerifier with all its dependencies and I have also disabled the validations in the Middleware but none of them it works