samedi 26 décembre 2015

Call routes from js file

I am new to laravel, so i don't know how to call a route from a js file.

$.post('executeSearch',{keywords: keywords},function(markup){
   console.log('Test2 passed');
   $('#search-results').html(markup);
});

I am trying to call a post route named executeSearch and I am using localhost.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire