Update ScrapeThePressCommand.php
This commit is contained in:
@@ -6,6 +6,7 @@ use App\Source;
|
|||||||
use Illuminate\Console\Command;
|
use Illuminate\Console\Command;
|
||||||
use App\Services\ThePressService;
|
use App\Services\ThePressService;
|
||||||
use App\Topic;
|
use App\Topic;
|
||||||
|
use Illuminate\Support\Carbon;
|
||||||
|
|
||||||
class ScrapeThePressCommand extends Command
|
class ScrapeThePressCommand extends Command
|
||||||
{
|
{
|
||||||
@@ -54,7 +55,7 @@ class ScrapeThePressCommand extends Command
|
|||||||
"author" => $article["author"],
|
"author" => $article["author"],
|
||||||
"featured_image" => $article["image"],
|
"featured_image" => $article["image"],
|
||||||
"body" => $article["content"],
|
"body" => $article["content"],
|
||||||
"published_date" => $article["date"],
|
"published_date" => Carbon::parse($article["date"])->format("Y-m-d H:i:s"),
|
||||||
"meta" => [
|
"meta" => [
|
||||||
"title" => $article["og_title"]
|
"title" => $article["og_title"]
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user