this is my test ajax in laravel 5 (refer below)
$(\"#try\").click(function(){
var url = $(this).attr(\"data-link\");
$.ajax({
url: \"test\",
90% of the laravel ajax internal server error is due to missing CSRF token. other reasons can inlucde:
You can read further about this in details here: https://abbasharoon.me/how-to-fix-laravel-ajax-500-internal-server-error/