2 years ago

Route::view dynamically not working

Posted 2 years ago by Oggy

After doing something like this:

Route::view('/video/{id}', 'overlays/video', ['id' => $id]);

it throws: Undefined variable: id

It is intended to work only like this:

Route::view('/video', 'overlays/video', ['id' => 'my_id']);

or there is a way to send that variable like I tried but I'm doing something wrong?

Please sign in or create an account to participate in this conversation.