fix voice
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
namespace App\Services;
|
||||
|
||||
use App\Services\Feeds\VoiceFeed;
|
||||
@@ -18,9 +19,10 @@ class VoiceService
|
||||
$articlesitems = [];
|
||||
//Looping through the articles and scraping and while scraping it creates a new instance of the scraper.
|
||||
foreach ($articles as $article) {
|
||||
$articlesitems[] = (new VoiceScraper)->extract("https://voice.mv".$article[1]);
|
||||
|
||||
$articlesitems[] = (new VoiceScraper)->extract($article["link"]);
|
||||
}
|
||||
|
||||
return $articlesitems;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user