Rota Hti Laravel do arquivo 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>