Answers for "url route laravel with js variable"

0

use js variable in blade route

var product_id = 15;

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

url = url.replace(':id',product_id);
Posted by: Guest on May-06-2021

Code answers related to "url route laravel with js variable"

Browse Popular Code Answers by Language