Update ScrapeThePressCommand.php
This commit is contained in:
@@ -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"]
|
||||
]
|
||||
|
Reference in New Issue
Block a user