1 $.ajaxSetup({
2 headers: { 'X-CSRF-Token' : $('meta[name=_token]').attr('content') }
3 });
4 jQuery.ajax({
5 url:'/group/create',
6 type: 'GET',
7 data: {
8 name: groupName,
9 colour: "red"
10 },
11 success: function( data ){
12
13 console.log(data);
14 },
15 error: function (xhr, b, c) {
16 console.log("xhr=" + xhr + " b=" + b + " c=" + c);
17 }
18 });
19