1.

How to turn off CSRF protection for a particular route in Laravel?

Answer»

We can add that PARTICULAR URL or ROUTE in $EXCEPT variable. It is present in the app\Http\Middleware\VerifyCsrfToken.php file.

Example

CLASS VerifyCsrfToken extends BaseVerifier {
      protected $except = [
            'Pass here your URL',
      ];
}



Discussion

No Comment Found