1// Open file \App\Http\Middleware\VerifyCsrfToken.php
2//Disable for all routes
3protected $except = [
4 '*',
5];
6
7//Disable for some routes
8 protected $except = [
9 'mobile/*',
10 'news/articles',
11];
12//I searched for a long time how to disable CSRF completely,
13//there are many identical examples but they do not help