Use a variável JS na rota da lâmina
var product_id = 15;
var url = '{{ route("product.edit", ":id") }}';
url = url.replace(':id',product_id);
Fahim Foysal
var product_id = 15;
var url = '{{ route("product.edit", ":id") }}';
url = url.replace(':id',product_id);