public function postupdateNotExist($post_id)
    {
        if ($this->countPostUpdates($post_id) == 0)
        {
            DB::table('posts')
                ->where('id', '=', $post_id)
                ->update(['postupdate' => 0])
            ;
        }
    }
public function postupdateNotExist($post_id)
    {
        if ($this->countPostUpdates($post_id) == 0)
        {
            DB::table('posts')
                ->where('id', '=', $post_id)
                ->update(['postupdate' => 0])
            ;
        }
    }
public function postupdateNotExist ( $ post_id ) { if ( $ this -> countPostUpdates ( $ post_id ) == 0 ) { DB :: table ( 'posts' ) -> where ( 'id' , '=' , $ post_id ) -> update ( [ 'postupdate' => 0 ] ) ; } }
When a post update is deleted, and no more post updates exist for that post, then update the
POSTS table to indicate that no post updates for that post exist.

@param  int    $post_id    The ID of the post that the post update pertains.
@return void
When a post update is deleted and no more post updates exist for that post then update the POSTS table to indicate that no post updates for that post exist .