xxxxxxxxxx
return response()->json($array, 202,
[
'Content-Type' => 'application/json',
'Charset' => 'utf-8'
], JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES);
}
xxxxxxxxxx
//Get output from your browser network.
return response()->json([$laravelVariable]);
xxxxxxxxxx
Route::get('/status', function () {
return response(["success" => true])->header('Content-Type', 'application/json');
});