What seems to be the problem:
When added livewire route I get this error all the time:
InvalidArgumentException
Attribute [livewire] does not exist.
at vendor/laravel/framework/src/Illuminate/Routing/RouteRegistrar.php:92
88▕ */
89▕ public function attribute($key, $value)
90▕ {
91▕ if (! in_array($key, $this->allowedAttributes)) {
➜ 92▕ throw new InvalidArgumentException("Attribute [{$key}] does not exist.");
93▕ }
94▕
95▕ $this->attributes[Arr::get($this->aliases, $key, $key)] = $value;
96▕
3 routes/web.php:5
Illuminate\Support\Facades\Facade::__callStatic("livewire")
8 app/Providers/RouteServiceProvider.php:104
Illuminate\Routing\RouteRegistrar::group("/Users/xxx/code/laravelhub/routes/web.php")
Steps to Reproduce:
I just create livewire component and add to routes/web.php simple route:
Route::livewire('threads', Threads::class);
And it doesn’t matter if this route is as single line or inside some route groups with a set of middlewares.
In routes/web.php I have:
use Illuminate\Support\Facades\Route;
Are you using the latest version of Livewire:
Livewire 2.0.0
Laravel 7