Error when i try to send an array or with an alpinejs variable
CodeConKarim opened this issue · 0 comments
CodeConKarim commented
when I try to save my form in this way or send an array in my arguments I get this error which appears :
The GET method is not supported for route livewire/update. Supported methods: POST.
<template x-for="(design,key) in designs" :key="key" >
<a href="#" wire:click.prevent="$dispatch('openModal', {component: 'templates.share-template', arguments: { templateId: design.id, type: 'add', title: 'Share with friends'}})"
class="flex items-center justify-center text-center rounded-full w-9 h-9 bg-slate-200 hover:bg-slate-400"
>
</template>
<scrip>
designs: @json($templates),
</script>
but when i replace design.id with 204 it's work
{templateId: 204 ....}