api
This commit is contained in:
parent
65177db6e3
commit
d55fdc2cf7
|
|
@ -31,7 +31,7 @@ class postsController extends Controller
|
|||
'category' => input('category'),
|
||||
'date' => input('date'),
|
||||
'published' => true,
|
||||
'select' => ['id','title','published_at',DB::raw("IF(featured_image<>'',concat('$path',image),image) as main_image")]
|
||||
'select' => ['id','title','published_at',DB::raw("IF(featured_image<>'',concat('$path',featured_image),featured_image) as main_image")]
|
||||
]);
|
||||
return $this->helpers->apiArrayResponseBuilder(200, 'success', $data);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue