Attribute [livewire] does not exist. 1

Attribute [livewire] does not exist.

If you are using a recent install of Laravel 8,
you will have Livewire V2.
In this version, Route::livewire() romeved.
 Instead, you specify a normal get() route,
 with the action being the Livewire component class.
 
 
 Route::get('/' , App\Http\Livewire\LandingPage::class);

Here is what the above code is Doing:
1. We are creating a route for the root URL of our application.
2. We are telling Laravel to use the LandingPage Livewire component for this route.
3. We are telling Laravel to use the render() method on the LandingPage component.

Similar Posts