This commit is contained in:
merdan 2021-06-17 17:32:43 +05:00
parent e2991eeb38
commit 99dc423d53
1 changed files with 3 additions and 1 deletions

View File

@ -38,7 +38,9 @@ class postsController extends Controller
public function show($locale,$id){
$post = $this->Post::find($id,['id','content_html','author']);
$post = $this->Post::find($id,['id','content_html','author','slug']);
$post->url = $this->pageUrl('post',['id'=>$post->id,'slug'=>$post->slug]);
if(!is_null($post)) {
$obj = Db::table('vdomah_blogviews_views')