getMessage()); } $output = ob_get_clean(); $response = response($output); // Fix content-type per contenuti non HTML if (ends_with($path, '.js')) { $response = $response->header('Content-Type', 'application/javascript'); } return $response; } }