I used to have a file called livewire.php and registered it in the RouteServiceProvider with a namespace of App\\Http\\Livewire.
So that it shorten my route from:
Route::get('/categories', App\Http\Livewire\Category\ManageCategories::class);
To a simple route like:
Route::get('/categories', Category\ManageCategories::class);
However, we’re going to transfer all our routes to web.php and it’s back to the long route. Is there any way to clean this route with calling App\Http\Livewire everytime?