public static function getPostForIndexListing($id) {

        // Actually, it's dangerous and confusing to have the link to the post's EDIT
        // form display in the post update's create/edit form. So, I am omitting
        // the link; and, instead, am displaying the post's title with the post's
        // ID in brackets.

        /*
        $post = DB::table('posts')->where('id', $id)->first();
        $html  = '<a href="';
        $html .= URL::route('admin.posts.edit', $id);
        $html .= '" target="_blank">'.$post->title.'</a>';
        */

        $title = DB::table('posts')->where('id', '=', $id)->pluck('title');
        $html = $title." (".$id.")";

        return $html;
    }
public static function getPostForIndexListing($id) {

        // Actually, it's dangerous and confusing to have the link to the post's EDIT
        // form display in the post update's create/edit form. So, I am omitting
        // the link; and, instead, am displaying the post's title with the post's
        // ID in brackets.

        /*
        $post = DB::table('posts')->where('id', $id)->first();
        $html  = '<a href="';
        $html .= URL::route('admin.posts.edit', $id);
        $html .= '" target="_blank">'.$post->title.'</a>';
        */

        $title = DB::table('posts')->where('id', '=', $id)->pluck('title');
        $html = $title." (".$id.")";

        return $html;
    }
public static function getPostForIndexListing ( $ id ) { // Actually, it's dangerous and confusing to have the link to the post's EDIT // form display in the post update's create/edit form. So, I am omitting // the link; and, instead, am displaying the post's title with the post's // ID in brackets. /*
        $post = DB::table('posts')->where('id', $id)->first();
        $html  = '<a href="';
        $html .= URL::route('admin.posts.edit', $id);
        $html .= '" target="_blank">'.$post->title.'</a>';
        */ $ title = DB :: table ( 'posts' ) -> where ( 'id' , '=' , $ id ) -> pluck ( 'title' ) ; $ html = $ title . " (" . $ id . ")" ; return $ html ; }
Grab the Post info from the "posts" table.
Created specifically for the "Post Updates" index listing

@param    int        $id
@return   string
Grab the Post info from the posts table . Created specifically for the Post Updates index listing