samedi 16 octobre 2021

override CSRF in form:open

I am using Litespeed and its cache for my larval app I have installed the package litespeed/lscache-laravel

I am generating csrf as

@if(env('ESI_ENABLED'))
<input type="hidden" frm="cache" name="_token" value='<esi:include src="/csrf"  />'>
@else
<input type="hidden" id="_token" value="">
@endif

this works fine.

but the issue is

{!! Form::open(['route'=>'signin.post','method'=>'post']) !!}

this adds csrf hidden input automatically so how do I override it to add my own ?



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/3lPctrG
via IFTTT

Aucun commentaire:

Enregistrer un commentaire