Automatic routing for your Livewire components.
composer require bastinald/laravel-livewire-routes
Declare a route
method in your Livewire components:
public function route()
{
return Route::get('/hello-world', static::class)
->name('hello-world')
->middleware('guest');
}
The route
method should return a Illuminate\Support\Facades\Route
.