I use laravel 8.
I define protected namespace in RouteServiceProvider:
protected $namespace = 'App\Http\Controllers';
then use livewire with the below route:
Route::get('/xxx' , App\Http\Livewire\Counter::class);
but I have the below error :
Invalid route action: [App\Http\Controllers\App\Http\Livewire\Counter].
Notice: this adds App\Http\Controllers first of my action !!! if remove protected $namespace all is OK. But I do not want to delete it.
Is there a way for me to have both controller protected namespace (for controller namespace) and a Route::get for Full-Page Components?