How to add execution time taken for an API to respond in lARAvel framework in the JSON response code example
Example: laravel return response view
return response()->view('your_view', compact('variableName'));
return response()->view('your_view', compact('variableName'));