Answers for "laravel ajax get data"

PHP
0

ajax laravel get data

$.ajaxSetup({
        headers: { 'X-CSRF-Token' : $('meta[name=_token]').attr('content') }
    });
    jQuery.ajax({
        url:'/group/create',
        type: 'GET',
        data: {
            name: groupName,
            colour: "red"
        },
        success: function( data ){

            console.log(data);
        },
        error: function (xhr, b, c) {
            console.log("xhr=" + xhr + " b=" + b + " c=" + c);
        }
    });
Posted by: Guest on March-26-2020
0

laravel get data from request

dd($request->all());
//print an array of the input name and the input value
Posted by: Guest on July-04-2020

Browse Popular Code Answers by Language