Update ThiladhunService.php

This commit is contained in:
2021-06-10 00:25:54 +05:00
parent fb6daf45e3
commit 522d6caa8c

View File

@@ -23,7 +23,7 @@ class ThiladhunService extends Client
$articlesitems = [];
//Looping through the articles and scraping and while scraping it creates a new instance of the scraper.
foreach ($articles as $article) {
$articlesitems[] = (new ThiladhunScraper)->extract($article["link"], $articles["pubDate"]);
$articlesitems[] = (new ThiladhunScraper)->extract($article["link"], $article["pubDate"]);
}
return $articlesitems;