Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

LearnWithMoin's avatar

Can i create route for livewire functions like laravel?

Can I create multiple routes using one livewire? is it possible like the main laravel in Livewire?

Route::get('/login',Login::class)->name('login');
Route::get('/signup',[Login::class,'signup'])->name('signup');

First route is working. but the second one does not showing the livewire template

0 likes
1 reply
martinbean's avatar
Level 80

@learnwithmoin No. Livewire components are full page components. You should have separate components for separate routes.

It makes no sense to use a component named Login for a /signup route. You should have a Signup component for handling that route.

1 like

Please or to participate in this conversation.