From 7adf670bf09aab46f151200554f8e9c854c0d17c Mon Sep 17 00:00:00 2001 From: Mohamed jinas Date: Sat, 24 Jul 2021 20:30:37 +0500 Subject: [PATCH] Update Article.php --- app/Article.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Article.php b/app/Article.php index 36579bd..d01ea9c 100644 --- a/app/Article.php +++ b/app/Article.php @@ -82,7 +82,9 @@ class Article extends Model 'id' => $this->id, 'title' => $this->title, 'body' => implode(" ",$this->body), - 'author' => $this->author + 'author' => $this->author, + 'source' => $this->source()->get(), + 'topics' => $this->topics()->get() ]; } }