In Laravel, clients don’t need to initialize CSRF tokens under the following conditions:
- Cookie and Session-based Authentication: When using cookie and session-based user authentication, and the route being accessed is part of
web.php
with theApp\Http\Middleware\VerifyCsrfToken
middleware enabled, CSRF tokens are required.