I have a page (example.com/administration/product/add/1)
I want to get the last url parameter (1) with vue js.
My laravel route:
Route::get('product/add/{company?}', function ()
{
return view('page.administration.admin.product.create');
})->name('Admin.Dashboard.Product.Create');
My attempt: this.$route.params.company but i get an error that $route is not defined.
Any tips?