public function showArticle($id)
    {
        try {
            $post = Article::with('user', 'category')
                           ->whereId(intval($id))
                           ->orWhere('slug', $id)
                           ->firstOrFail();

            $view = \Config::get('admin.views.post');

            return \View::make($view, compact('post'));
        } catch (ModelNotFoundException $e) {
            return \App::abort(404);
        }
    }
public function showArticle($id)
    {
        try {
            $post = Article::with('user', 'category')
                           ->whereId(intval($id))
                           ->orWhere('slug', $id)
                           ->firstOrFail();

            $view = \Config::get('admin.views.post');

            return \View::make($view, compact('post'));
        } catch (ModelNotFoundException $e) {
            return \App::abort(404);
        }
    }
public function showArticle ( $ id ) { try { $ post = Article :: with ( 'user' , 'category' ) -> whereId ( intval ( $ id ) ) -> orWhere ( 'slug' , $ id ) -> firstOrFail ( ) ; $ view = \ Config :: get ( 'admin.views.post' ) ; return \ View :: make ( $ view , compact ( 'post' ) ) ; } catch ( ModelNotFoundException $ e ) { return \ App :: abort ( 404 ) ; } }
Show article.

@param int $id

@return mixed
Show article .