This commit is contained in:
merdan 2021-05-11 17:59:49 +05:00
parent d55fdc2cf7
commit 8b9386c0c8
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ class postsController extends Controller
'category' => input('category'), 'category' => input('category'),
'date' => input('date'), 'date' => input('date'),
'published' => true, 'published' => true,
'select' => ['id','title','published_at',DB::raw("IF(featured_image<>'',concat('$path',featured_image),featured_image) as main_image")] 'select' => ['id','title','published_at','content_html',DB::raw("IF(featured_image<>'',concat('$path',featured_image),featured_image) as main_image")]
]); ]);
return $this->helpers->apiArrayResponseBuilder(200, 'success', $data); return $this->helpers->apiArrayResponseBuilder(200, 'success', $data);
} }