iAMR77
0
Q:

laravel return response json

return response()->json(['name' => 'Abigail', 'state' => 'CA']);
0
return response()->json([
    'name' => 'Abigail',
    'state' => 'CA'
]);
0
return response()->json([
    'name' => 'Abigail',
    'state' => 'CA',
]);
0
return response()->view('your_view', compact('variableName'));
0

New to Communities?

Join the community