Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

elefant793's avatar

Method App\Livewire\Event\Event::resolveRouteBinding does not exist.

Hi, I'm trying to load a Livewire Component from the web router but i keep getting this error Method App\Livewire\Event\Event::resolveRouteBinding does not exist.

This is my routes call Route::get('/event/{event}', \App\Livewire\Event\Event::class)->name('event.show');

And here is my Livewire Component

<?php

namespace App\Livewire\Event;

use Livewire\Component;

class Event extends Component
{
    public Event $event;
    public string $activeTab;

    public function mount(Event $event)
    {
        $this->event = $event;
        $this->activeTab = 'home';
    }
    public function render()
    {
        return view('livewire.event.event');
    }

    public function goToTab(string $tab)
    {
        $this->activeTab = $tab;
    }
}

Anyone got any ideas? Thanks

0 likes
1 reply
elefant793's avatar

Ok it seems like I fixed it. Dont quite get why, but when i define the layout in the render method instead of as a tag in the blade file, it seems to be working

Please or to participate in this conversation.