Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Alizey's avatar

How to use csrf_token()

How we can use <input name="_token" type="hidden" value="{!! csrf_token() !!}" /> value in controller. I means i proprage a full form from ajax but how can is use csrf_token() value in my form.

0 likes
1 reply

Please or to participate in this conversation.