Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

use js variable in blade route

var product_id = 15;

var url = '{{ route("product.edit", ":id") }}';

url = url.replace(':id',product_id);
 
PREVIOUS NEXT
Tagged: #js #variable #blade #route
ADD COMMENT
Topic
Name
8+4 =