api surat views
This commit is contained in:
parent
112539e3d7
commit
4de3967acf
|
|
@ -31,14 +31,14 @@ class postsController extends Controller
|
|||
'category' => input('category'),
|
||||
'date' => input('date'),
|
||||
'published' => true,
|
||||
'select' => ['id','title','published_at','content_html',DB::raw("IF(featured_image<>'',concat('$path',featured_image),featured_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);
|
||||
}
|
||||
|
||||
public function show($locale,$id){
|
||||
|
||||
$post = $this->Post::find($id);
|
||||
$post = $this->Post::find($id,['id','content_html']);
|
||||
|
||||
if(!is_null($post)) {
|
||||
$obj = Db::table('vdomah_blogviews_views')
|
||||
|
|
|
|||
Loading…
Reference in New Issue