Sometimes we may wish to exclude,omit certain URIs Route from CSRF protection. For example, if you are using Stripe to process payments and are utilizing their webhook system, you will need to exclude your webhook handler route from Laravel's CSRF protection.
You may exclude URIs by defining their routes outside of the web
middleware group that is included in the default routes.php
file, or by adding the URIs to the $except property of the VerifyCsrfToken
middleware:
<?php namespace App\Http\Middleware; use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken as BaseVerifier; class VerifyCsrfToken extends BaseVerifier { /** * The URIs that should be excluded from CSRF verification. * * @var array */ protected $except = [ 'stripe/*', ]; }
Be the first one to write a response :(
{{ reply.member.name }} - {{ reply.created_at_human_readable }}