Answers for "how to exclude csrf in a route laravel"

PHP
0

how to exclude csrf in a route laravel

<?php namespace App\Http\Middleware;

use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken as BaseVerifier;

class VerifyCsrfToken extends BaseVerifier
{
  protected $except = [
    // your laravel route as below
    '/payment',
  ];
}
Posted by: Guest on July-06-2021

Code answers related to "how to exclude csrf in a route laravel"

Browse Popular Code Answers by Language