Verwenden Sie die JS -Variable in der Klingenroute
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);