Update ScrapeThePressCommand.php

This commit is contained in:
2020-08-15 00:55:45 +05:00
parent f160804a0b
commit 4fba54c83d

View File

@@ -6,6 +6,7 @@ use App\Source;
use Illuminate\Console\Command;
use App\Services\ThePressService;
use App\Topic;
use Illuminate\Support\Carbon;
class ScrapeThePressCommand extends Command
{
@@ -54,7 +55,7 @@ class ScrapeThePressCommand extends Command
"author" => $article["author"],
"featured_image" => $article["image"],
"body" => $article["content"],
"published_date" => $article["date"],
"published_date" => Carbon::parse($article["date"])->format("Y-m-d H:i:s"),
"meta" => [
"title" => $article["og_title"]
]