Update ThiladhunScraper.php
This commit is contained in:
@@ -4,6 +4,7 @@ namespace App\Services\Scrapers;
|
|||||||
|
|
||||||
use Goutte\Client;
|
use Goutte\Client;
|
||||||
use Illuminate\Support\Carbon;
|
use Illuminate\Support\Carbon;
|
||||||
|
use Illuminate\Support\Str;
|
||||||
|
|
||||||
class ThiladhunScraper
|
class ThiladhunScraper
|
||||||
{
|
{
|
||||||
@@ -77,7 +78,7 @@ class ThiladhunScraper
|
|||||||
'date' => Carbon::parse($date)->format("Y-m-d H:i:s"),
|
'date' => Carbon::parse($date)->format("Y-m-d H:i:s"),
|
||||||
'url' => $url,
|
'url' => $url,
|
||||||
'author' => $this->author,
|
'author' => $this->author,
|
||||||
'guid' => basename($url),
|
'guid' => (integer) Str::before(basename($url), '?'),
|
||||||
'topics' => $this->topics ? : [
|
'topics' => $this->topics ? : [
|
||||||
[
|
[
|
||||||
"name" => "ވަކި މަޢުލޫއެއް ނޭންގެ",
|
"name" => "ވަކި މަޢުލޫއެއް ނޭންގެ",
|
||||||
|
Reference in New Issue
Block a user