hti laravel route from javascript file code example
Example: hti laravel route from javascript file
<script type="text/javascript">
var deletePostUri = "{{ route('delete_post',$post_id)}}";
</script>
<script type="text/javascript">
var deletePostUri = "{{ route('delete_post',$post_id)}}";
</script>