Laravel retourne JSON Response
return response()->json([
'name' => 'Abigail',
'state' => 'CA',
]);
Witty Wombat
return response()->json([
'name' => 'Abigail',
'state' => 'CA',
]);
Route::get('/status', function () {
return response(["success" => true])->header('Content-Type', 'application/json');
});
//Get output from your browser network.
return response()->json([$laravelVariable]);