Registering Livewire components for use in another view in Laravel

Asked

Viewed 18 times

-2

Hello,

I have a Livewire component rendering the full page, but I’m trying to include a component in the middle of the view:

<div>
    <div class="max-w-7xl mx-auto py-10 sm:px-6 lg:px-8">
        @livewire('livewire.person.own-person-update')
    </div>
</div>

I have a component in that path:

namespace App\Http\Livewire\Person;

use Livewire\Component;

class OwnPersonUpdate extends Component
{
    public function render()
    {
        return view('livewire.person.own-person-update');
    }
}

But I have the following error answer in the Standard:

Erro no Laravel

  • It wouldn’t be @Livewire('person.Own-person-update') ?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.