маршрут HTI Laravel из файла JavaScript
<script type="text/javascript">
var deletePostUri = "{{ route('delete_post',$post_id)}}";
</script>
MajorMFR
<script type="text/javascript">
var deletePostUri = "{{ route('delete_post',$post_id)}}";
</script>