[Vuejs]-Trying to get property of non-object, from an object

0👍

With some help and ideas, I come up with a solution. First, I modified the JSON format as @JigarShah suggested, and then, from within the Controller, following code:

public function store(Request $r)
{
    $x = $r->input('language');
    $d = json_decode($x);

    print_r($d->name);
}

All ok.

Leave a comment