How to pass variables from slug to LiveWire Controller

Hi!
I can’t solve the following issue:

domain.com/dailyclosing/parameter1/10/parameter2/20

actual I have this: It works fine
Route::middleware([‘auth:sanctum’, ‘verified’])->get(’/dailyclosing’, DailyClosings::class);
For legged in user I can show the editor table. OK.

I would like to pre-filter the editor table depending on the passed parameters like
parameter1=10
parameter2 =20

Could you please tell me how I can pass extra parameters to the DailyClosings coltroller class?
I think after I passd them I should mount them also (?)

Thanks
Gergely

Steps to Reproduce:

Are you using the latest version of Livewire:

Do you have any screenshots or code examples:

Hey, @faxunil

I’m not getting you a question. If you want to pass something to the controllers you can to that easily and if you want to pass parameters to livewire components you can too.

Controller Example:
Routes

Route::get('/testing/{testing/test/{test}', Controller::class);

Controller

public function index(Testing $testing, Test $test)
{
   //
}

In your blade:

<livewire :testing="$testing" :test="$test"/>

Livewire Component

public function mount(Testing $testing, Test $test)
{
  //
}

Yes Thanks a lot.
I have type failure found in my code…

Great! Happy to hear that you’re solved your question