diff --git a/app/Services/Client.php b/app/Services/Client.php new file mode 100644 index 0000000..9b6d382 --- /dev/null +++ b/app/Services/Client.php @@ -0,0 +1,25 @@ +ok()) + { + throw new \Exception("Error getting the rss feed"); + } + + return json_decode(json_encode(simplexml_load_string($response->body())), true); + } +} \ No newline at end of file