CSRF token for ajax

This commit is contained in:
snipe
2015-11-26 13:53:51 -08:00
parent 1efb1f7038
commit 6bedaa903a

View File

@@ -466,6 +466,7 @@ $(function () {
});
//console.dir(data);
data._token = '{{ csrf_token() }}',
$.post("{{Config::get('app.url')}}/api/"+model+"s",data,function (result) {
var id=result.id;