larvel route name pass id to js function

Solutions on MaxInterview for larvel route name pass id to js function by the best coders in the world

showing results for - "larvel route name pass id to js function"
Charly
19 Jul 2020
1    // Adding id to route name in laravel in javascript
2	function quick_edit_modal(id){           
3		let productDetailApiUrl = '{{ route("seller.product_detail", ":id") }}';
4        productDetailApiUrl = productDetailApiUrl.replace(':id', id);
5    }