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

Hibt's avatar
Level 1

TokenMismatchException in VerifyCsrfToken.php line 46:

i am facing a problem. Can any one help me.

i design two forms in Entertainment portal App.. both have file input types .. 1 for image uploadng 2 for Videos uploading image uploading works properly . But when i upload video from 2nd video uploading form. it creates error

TokenMismatchException in VerifyCsrfToken.php line 46:

both forms have the same token .

i tried to work manually like using HTML form and adding token this

<input type="hidden" name="_token" value="{{ csrf_token() }}">

and also used

{{  Fom::token() }}

but error remains same . and token remains same Any Solution ................

0 likes
4 replies
christopher's avatar

If you use the HTML Form Facade in L5 you have to escape it with

{!! Form::token() !!}
Snapey's avatar

Please surround your example code with three backticks ` so that we can see the full script.

You can include the token with the blade tag

{{ csrf_token() }}
Shahin's avatar

Try this :

{!! Form::open(['url' => '/todo', 'class' => 'form-horizontal', 'role' => 'form']) !!}
{!! Form::close() !!}

Please or to participate in this conversation.