Livewire:从 UI 到控制器再到 UI 的数据绑定不起作用

Livewire: Data Binding not working from UI to controller to UI

每当我尝试使用实时数据绑定时 它给出 404 错误

接触-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;
    }
}

错误

它从 UI 到控制器的简单数据绑定 Html 检查电线 ID 与 html 请求中存在的电线 ID 相同,

Livewire data binding issues 这个解决方案也不适合我

从 Laravel >7 版本重新安装到指定 laravel 7 解决我的问题