var post_id = $(this).val(); $.ajax({ ... url: "{{ route('admin_post.edit')}}/" + post_id, ... });
You can just attach post_id to the ajax url prop.