当我尝试使用有效的网络数据绑定时,它给出了404错误
contact-form.blade.php
<div wire.transition.fade key="unique-key">
<input wire:model="named" class="w-full px-5 py-3 border border-gray-400 rounded-lg outline-none focus:shadow-outline" type="text" placeholder="Email Address" />
{{$named}}
</div>Contactform.php
<?php
namespace App\Http\Livewire;
use Livewire\Component;
class ContactForm extends Component
{
public $named = "jelly";
public function render()
{
return view('livewire.contact-form', ['named' => $this->named])->layout('layouts.app');;
}
public function mount($named)
{
$this->named =$named;
}
}错误

它在Html中从UI到控制器简单数据绑定检查wire id与html请求中存在的wire id相同,
Livewire data binding issues这个解决方案对我也不起作用

发布于 2021-02-22 17:51:15
从Larvel >7版本重新安装到指定的laravel 7解决我的问题
https://stackoverflow.com/questions/66291617
复制相似问题